Skip to content

Commit cd52cc3

Browse files
author
Kent Overstreet
committed
bcachefs: Don't strip rebalance_opts from indirect extents
Fix bch2_bkey_clear_needs_rebalance(): indirect extents are never supposed to have bch_extent_rebalance stripped off, because that's how we get the IO path options when we don't have the original inode it belonged to. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 8e4d280 commit cd52cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/rebalance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static int bch2_bkey_clear_needs_rebalance(struct btree_trans *trans,
309309
struct btree_iter *iter,
310310
struct bkey_s_c k)
311311
{
312-
if (!bch2_bkey_rebalance_opts(k))
312+
if (k.k->type == KEY_TYPE_reflink_v || !bch2_bkey_rebalance_opts(k))
313313
return 0;
314314

315315
struct bkey_i *n = bch2_bkey_make_mut(trans, iter, &k, 0);

0 commit comments

Comments
 (0)