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
a2b6b072
Commit
a2b6b072
authored
Mar 29, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: add missing bch2_btree_iter_node_drop() call
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
58a46dc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.c
+0
-8
fs/bcachefs/btree_update_interior.c
fs/bcachefs/btree_update_interior.c
+5
-0
No files found.
fs/bcachefs/btree_iter.c
View file @
a2b6b072
...
...
@@ -819,14 +819,6 @@ void bch2_btree_iter_node_drop(struct btree_iter *iter, struct btree *b)
struct
btree_iter
*
linked
;
unsigned
level
=
b
->
level
;
/* caller now responsible for unlocking @b */
BUG_ON
(
iter
->
l
[
level
].
b
!=
b
);
BUG_ON
(
!
btree_node_intent_locked
(
iter
,
level
));
iter
->
l
[
level
].
b
=
BTREE_ITER_NOT_END
;
mark_btree_node_unlocked
(
iter
,
level
);
trans_for_each_iter
(
iter
->
trans
,
linked
)
if
(
linked
->
l
[
level
].
b
==
b
)
{
__btree_node_unlock
(
linked
,
level
);
...
...
fs/bcachefs/btree_update_interior.c
View file @
a2b6b072
...
...
@@ -1429,6 +1429,7 @@ static void btree_split(struct btree_update *as, struct btree *b,
/* Successful split, update the iterator to point to the new nodes: */
six_lock_increment
(
&
b
->
lock
,
SIX_LOCK_intent
);
bch2_btree_iter_node_drop
(
iter
,
b
);
if
(
n3
)
bch2_btree_iter_node_replace
(
iter
,
n3
);
...
...
@@ -1740,7 +1741,10 @@ void __bch2_foreground_maybe_merge(struct bch_fs *c,
bch2_open_buckets_put
(
c
,
&
n
->
ob
);
six_lock_increment
(
&
b
->
lock
,
SIX_LOCK_intent
);
bch2_btree_iter_node_drop
(
iter
,
b
);
bch2_btree_iter_node_drop
(
iter
,
m
);
bch2_btree_iter_node_replace
(
iter
,
n
);
bch2_btree_iter_verify
(
iter
,
n
);
...
...
@@ -1838,6 +1842,7 @@ static int __btree_node_rewrite(struct bch_fs *c, struct btree_iter *iter,
bch2_open_buckets_put
(
c
,
&
n
->
ob
);
six_lock_increment
(
&
b
->
lock
,
SIX_LOCK_intent
);
bch2_btree_iter_node_drop
(
iter
,
b
);
bch2_btree_iter_node_replace
(
iter
,
n
);
bch2_btree_node_free_inmem
(
c
,
b
,
iter
);
...
...
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