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:
92c7789
)
bcachefs: Fix btree iter flags in data move
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 17 Mar 2025 19:07:06 +0000
(15:07 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 24 Mar 2025 13:50:35 +0000
(09:50 -0400)
Rebalance requires a not_extents iterator.
This wasn't hit before because all_snapshots disableds is_extents on
snapshots btrees - but has no effect on the reflink btree.
Reported-by: Maƫl Kerbiriou <mael.kerbiriou@free.fr>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/move.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/move.c
b/fs/bcachefs/move.c
index 55e17c2d8e5ae4b02a68be8a5c4e2bc2975942d9..8fcdc6984f6e0bf6099c259c5b4e7ee4136caa5b 100644
(file)
--- a/
fs/bcachefs/move.c
+++ b/
fs/bcachefs/move.c
@@
-561,6
+561,7
@@
static int bch2_move_data_btree(struct moving_context *ctxt,
bch2_trans_begin(trans);
bch2_trans_iter_init(trans, &iter, btree_id, start,
BTREE_ITER_prefetch|
+ BTREE_ITER_not_extents|
BTREE_ITER_all_snapshots);
if (ctxt->rate)