diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-01-19 13:11:24 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-06 18:15:02 -0500 |
commit | caee3f6e11ad6ed509705a4047dbdefdc0f82cde (patch) | |
tree | 57f13d0e0b658822edf756c1454dcb7e386b50cf | |
parent | c32012196cd466be39aa6b5db58c11ef23844be6 (diff) |
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>
-rw-r--r-- | fs/bcachefs/io_read.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/io_read.c b/fs/bcachefs/io_read.c index 89a75bc5d46f..fcaf9c40cb11 100644 --- a/fs/bcachefs/io_read.c +++ b/fs/bcachefs/io_read.c @@ -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; |