Skip to content

Commit 7b84d93

Browse files
author
Kent Overstreet
committed
bcachefs: Setting foreground_target at runtime now triggers rebalance
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 8b294a9 commit 7b84d93

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/bcachefs/sysfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ static ssize_t sysfs_opt_store(struct bch_fs *c,
650650

651651
if (v &&
652652
(id == Opt_background_target ||
653+
(id == Opt_foreground_target && !c->opts.background_target) ||
653654
id == Opt_background_compression ||
654655
(id == Opt_compression && !c->opts.background_compression)))
655656
bch2_set_rebalance_needs_scan(c, 0);

0 commit comments

Comments
 (0)