Commit 1ad36a01 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Use GFP_KERNEL for promote allocations

We already have btree locks dropped here - no need for GFP_NOFS.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 92038825
...@@ -174,7 +174,7 @@ static struct promote_op *__promote_alloc(struct btree_trans *trans, ...@@ -174,7 +174,7 @@ static struct promote_op *__promote_alloc(struct btree_trans *trans,
if (!bch2_write_ref_tryget(c, BCH_WRITE_REF_promote)) if (!bch2_write_ref_tryget(c, BCH_WRITE_REF_promote))
return NULL; return NULL;
op = kzalloc(sizeof(*op) + sizeof(struct bio_vec) * pages, GFP_NOFS); op = kzalloc(sizeof(*op) + sizeof(struct bio_vec) * pages, GFP_KERNEL);
if (!op) if (!op)
goto err; goto err;
...@@ -187,7 +187,7 @@ static struct promote_op *__promote_alloc(struct btree_trans *trans, ...@@ -187,7 +187,7 @@ static struct promote_op *__promote_alloc(struct btree_trans *trans,
*/ */
*rbio = kzalloc(sizeof(struct bch_read_bio) + *rbio = kzalloc(sizeof(struct bch_read_bio) +
sizeof(struct bio_vec) * pages, sizeof(struct bio_vec) * pages,
GFP_NOFS); GFP_KERNEL);
if (!*rbio) if (!*rbio)
goto err; goto err;
...@@ -195,7 +195,7 @@ static struct promote_op *__promote_alloc(struct btree_trans *trans, ...@@ -195,7 +195,7 @@ static struct promote_op *__promote_alloc(struct btree_trans *trans,
bio_init(&(*rbio)->bio, NULL, (*rbio)->bio.bi_inline_vecs, pages, 0); bio_init(&(*rbio)->bio, NULL, (*rbio)->bio.bi_inline_vecs, pages, 0);
if (bch2_bio_alloc_pages(&(*rbio)->bio, sectors << 9, if (bch2_bio_alloc_pages(&(*rbio)->bio, sectors << 9,
GFP_NOFS)) GFP_KERNEL))
goto err; goto err;
(*rbio)->bounce = true; (*rbio)->bounce = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment