mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
bcachefs: Setting foreground_target at runtime now triggers rebalance
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
8b294a9b5c
commit
7b84d934a1
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user