From: Kent Overstreet Date: Mon, 17 Mar 2025 19:07:06 +0000 (-0400) Subject: bcachefs: Fix btree iter flags in data move X-Git-Tag: io_uring-6.15-20250403~68^2~30 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=16a8d5d00b8add42924185c30f7cefdbb156fdd4;p=linux-block.git 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 Signed-off-by: Kent Overstreet --- 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)