diff options
author | 2025-03-13 00:55:23 -0400 | |
---|---|---|
committer | 2025-03-24 09:50:35 -0400 | |
commit | 7b84d934a16274eaedfb38cb94b909426048c48e (patch) | |
tree | 0bab2615a50d0f11fca2c62299b5ef73e755bb26 | |
parent | bcachefs: Device options now use standard sysfs code (diff) | |
download | wireguard-linux-7b84d934a16274eaedfb38cb94b909426048c48e.tar.xz wireguard-linux-7b84d934a16274eaedfb38cb94b909426048c48e.zip |
bcachefs: Setting foreground_target at runtime now triggers rebalance
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index 4c5b585041be..b01b2ae87051 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); |