From 7b84d934a16274eaedfb38cb94b909426048c48e Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 13 Mar 2025 00:55:23 -0400 Subject: [PATCH] bcachefs: Setting foreground_target at runtime now triggers rebalance Signed-off-by: Kent Overstreet --- fs/bcachefs/sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index 4c5b585041bea..b01b2ae870514 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -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); -- 2.47.2