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:
Kent Overstreet
2025-01-19 13:11:24 -05:00
parent d0148e7169
commit 8ff92a9e4e

View File

@@ -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;