mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
bcachefs: Copygc allocations shouldn't be nowait
We don't actually want copygc allocations to be nowait - an allocation for copygc might fail and then later succeed due to a bucket needing to wait on journal commit, or to be discarded. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
70a9953c42
commit
d905f67ec8
1 changed files with 0 additions and 1 deletions
|
@ -352,7 +352,6 @@ int bch2_migrate_write_init(struct bch_fs *c, struct migrate_write *m,
|
|||
|
||||
if (m->data_opts.btree_insert_flags & BTREE_INSERT_USE_RESERVE) {
|
||||
m->op.alloc_reserve = RESERVE_movinggc;
|
||||
m->op.flags |= BCH_WRITE_ALLOC_NOWAIT;
|
||||
} else {
|
||||
/* XXX: this should probably be passed in */
|
||||
m->op.flags |= BCH_WRITE_ONLY_SPECIFIED_DEVS;
|
||||
|
|
Loading…
Reference in a new issue