mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
bcachefs: snapshot: Add missing assignment in bch2_delete_dead_snapshots()
This code accidentally left out the "ret = " assignment so the errors
from for_each_btree_key2() are not checked.
Fixes: 53534482a250 ("bcachefs: for_each_btree_key2()")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
1f12900ab5
commit
d67a72bfc9
|
|
@ -1405,8 +1405,8 @@ int bch2_delete_dead_snapshots(struct bch_fs *c)
|
|||
goto err;
|
||||
}
|
||||
|
||||
for_each_btree_key2(trans, iter, BTREE_ID_snapshots,
|
||||
POS_MIN, 0, k,
|
||||
ret = for_each_btree_key2(trans, iter, BTREE_ID_snapshots,
|
||||
POS_MIN, 0, k,
|
||||
bch2_snapshot_set_equiv(trans, k));
|
||||
if (ret) {
|
||||
bch_err_msg(c, ret, "in bch2_snapshots_set_equiv");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user