Commit 8f3e4e87 authored by Qianfeng Rong's avatar Qianfeng Rong Committed by Jens Axboe
Browse files

block, bfq: remove redundant __GFP_NOWARN



Commit 16f5dfbc ("gfp: include __GFP_NOWARN in GFP_NOWAIT") made
GFP_NOWAIT implicitly include __GFP_NOWARN.

Therefore, explicit __GFP_NOWARN combined with GFP_NOWAIT (e.g.,
`GFP_NOWAIT | __GFP_NOWARN`) is now redundant.  Let's clean up these
redundant flags across subsystems.

Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarQianfeng Rong <rongqianfeng@vivo.com>
Link: https://lore.kernel.org/r/20250811081135.374315-1-rongqianfeng@vivo.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5058a628
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5847,8 +5847,7 @@ static struct bfq_queue *bfq_get_queue(struct bfq_data *bfqd,
			goto out;
	}

	bfqq = kmem_cache_alloc_node(bfq_pool,
				     GFP_NOWAIT | __GFP_ZERO | __GFP_NOWARN,
	bfqq = kmem_cache_alloc_node(bfq_pool, GFP_NOWAIT | __GFP_ZERO,
				     bfqd->queue->node);

	if (bfqq) {