mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 10:11:52 -04:00
bcachefs: Promotes should use BCH_WRITE_only_specified_devs
Promotes, like most other internal moves, should only go to the specified target and not fall back to allocating from the full filesystem. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -194,6 +194,7 @@ static struct bch_read_bio *__promote_alloc(struct btree_trans *trans,
|
||||
update_opts.target = orig->opts.promote_target;
|
||||
update_opts.extra_replicas = 1;
|
||||
update_opts.write_flags = BCH_WRITE_alloc_nowait|BCH_WRITE_cached;
|
||||
update_opts.write_flags |= BCH_WRITE_only_specified_devs;
|
||||
} else {
|
||||
update_opts.target = orig->opts.foreground_target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user