bcachefs: Fix rebalance_work accounting
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 23 Aug 2024 19:35:22 +0000 (15:35 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 24 Aug 2024 14:16:21 +0000 (10:16 -0400)
commit49aa7830396bce33b00fa7ee734c35de36521138
treefc8336925e170358424ad5048f13753aa7194884
parentd3204616a67e53fdcad14c7026869330fb382fd4
bcachefs: Fix rebalance_work accounting

rebalance_work was keying off of the presence of rebelance_opts in the
extent - but that was incorrect, we keep those around after rebalance
for indirect extents since the inode's options are not directly
available

Fixes: 20ac515a9cc7 ("bcachefs: bch_acct_rebalance_work")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/buckets.c
fs/bcachefs/extents.c
fs/bcachefs/extents.h
fs/bcachefs/sb-downgrade.c