Commit 7b84d934 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Setting foreground_target at runtime now triggers rebalance

parent 8b294a9b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);