diff options
author | 2025-03-17 15:07:06 -0400 | |
---|---|---|
committer | 2025-03-24 09:50:35 -0400 | |
commit | 16a8d5d00b8add42924185c30f7cefdbb156fdd4 (patch) | |
tree | 9adf893f00d6de3b74a4fb6a58dcc9346e2ce7ba | |
parent | bcachefs: Validate bch_sb.offset field (diff) | |
download | wireguard-linux-16a8d5d00b8add42924185c30f7cefdbb156fdd4.tar.xz wireguard-linux-16a8d5d00b8add42924185c30f7cefdbb156fdd4.zip |
bcachefs: Fix btree iter flags in data move
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>
-rw-r--r-- | fs/bcachefs/move.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c index 55e17c2d8e5a..8fcdc6984f6e 100644 --- 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) |