projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
729608a
)
bcachefs: ensure iter->should_be_locked is set
author
Dan Robertson
<dan@dlrobertson.com>
Tue, 29 Jun 2021 22:52:13 +0000
(18:52 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:07 +0000
(17:09 -0400)
Ensure that iter->should_be_locked is set to true before we
call bch2_trans_update in __bch2_dev_usrdata_drop.
Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/migrate.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/migrate.c
b/fs/bcachefs/migrate.c
index 6ebe49ba224803b1731f2381f573182fb7ff546c..91a9f584dd6d59a16e9edd3bc93d169aced16707 100644
(file)
--- a/
fs/bcachefs/migrate.c
+++ b/
fs/bcachefs/migrate.c
@@
-73,7
+73,8
@@
static int __bch2_dev_usrdata_drop(struct bch_fs *c, unsigned dev_idx, int flags
bch2_btree_iter_set_pos(iter, bkey_start_pos(&sk.k->k));
- ret = bch2_trans_update(&trans, iter, sk.k, 0) ?:
+ ret = bch2_btree_iter_traverse(iter) ?:
+ bch2_trans_update(&trans, iter, sk.k, 0) ?:
bch2_trans_commit(&trans, NULL, NULL,
BTREE_INSERT_NOFAIL);