Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
566eabd3
Commit
566eabd3
authored
Dec 11, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: bch2_path_get() no longer uses path->idx
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
b0b67378
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.c
+6
-5
No files found.
fs/bcachefs/btree_iter.c
View file @
566eabd3
...
@@ -1561,7 +1561,7 @@ btree_path_idx_t bch2_path_get(struct btree_trans *trans,
...
@@ -1561,7 +1561,7 @@ btree_path_idx_t bch2_path_get(struct btree_trans *trans,
bool
cached
=
flags
&
BTREE_ITER_CACHED
;
bool
cached
=
flags
&
BTREE_ITER_CACHED
;
bool
intent
=
flags
&
BTREE_ITER_INTENT
;
bool
intent
=
flags
&
BTREE_ITER_INTENT
;
struct
trans_for_each_path_inorder_iter
iter
;
struct
trans_for_each_path_inorder_iter
iter
;
btree_path_idx_t
path_pos
=
0
;
btree_path_idx_t
path_pos
=
0
,
path_idx
;
bch2_trans_verify_not_in_restart
(
trans
);
bch2_trans_verify_not_in_restart
(
trans
);
bch2_trans_verify_locks
(
trans
);
bch2_trans_verify_locks
(
trans
);
...
@@ -1584,10 +1584,11 @@ btree_path_idx_t bch2_path_get(struct btree_trans *trans,
...
@@ -1584,10 +1584,11 @@ btree_path_idx_t bch2_path_get(struct btree_trans *trans,
trans
->
paths
[
path_pos
].
btree_id
==
btree_id
&&
trans
->
paths
[
path_pos
].
btree_id
==
btree_id
&&
trans
->
paths
[
path_pos
].
level
==
level
)
{
trans
->
paths
[
path_pos
].
level
==
level
)
{
__btree_path_get
(
trans
->
paths
+
path_pos
,
intent
);
__btree_path_get
(
trans
->
paths
+
path_pos
,
intent
);
path
=
trans
->
paths
+
bch2_btree_path_set_pos
(
trans
,
path
_idx
=
bch2_btree_path_set_pos
(
trans
,
path_pos
,
pos
,
intent
,
ip
);
path_pos
,
pos
,
intent
,
ip
)
;
path
=
trans
->
paths
+
path_idx
;
}
else
{
}
else
{
path
=
trans
->
paths
+
btree_path_alloc
(
trans
,
path_pos
);
path_idx
=
btree_path_alloc
(
trans
,
path_pos
);
path
=
trans
->
paths
+
path_idx
;
__btree_path_get
(
path
,
intent
);
__btree_path_get
(
path
,
intent
);
path
->
pos
=
pos
;
path
->
pos
=
pos
;
...
@@ -1624,7 +1625,7 @@ btree_path_idx_t bch2_path_get(struct btree_trans *trans,
...
@@ -1624,7 +1625,7 @@ btree_path_idx_t bch2_path_get(struct btree_trans *trans,
if
(
locks_want
>
path
->
locks_want
)
if
(
locks_want
>
path
->
locks_want
)
bch2_btree_path_upgrade_noupgrade_sibs
(
trans
,
path
,
locks_want
,
NULL
);
bch2_btree_path_upgrade_noupgrade_sibs
(
trans
,
path
,
locks_want
,
NULL
);
return
path
->
idx
;
return
path
_
idx
;
}
}
struct
bkey_s_c
bch2_btree_path_peek_slot
(
struct
btree_path
*
path
,
struct
bkey
*
u
)
struct
bkey_s_c
bch2_btree_path_peek_slot
(
struct
btree_path
*
path
,
struct
bkey
*
u
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment