bcachefs: Setting foreground_target at runtime now triggers rebalance

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2025-03-13 00:55:23 -04:00
parent 8b294a9b5c
commit 7b84d934a1
+1
View File
@@ -650,6 +650,7 @@ static ssize_t sysfs_opt_store(struct bch_fs *c,
if (v &&
(id == Opt_background_target ||
(id == Opt_foreground_target && !c->opts.background_target) ||
id == Opt_background_compression ||
(id == Opt_compression && !c->opts.background_compression)))
bch2_set_rebalance_needs_scan(c, 0);