Skip to content

Commit 8f3e4e8

Browse files
qianfengrongaxboe
authored andcommitted
block, bfq: remove redundant __GFP_NOWARN
Commit 16f5dfb ("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: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Link: https://lore.kernel.org/r/20250811081135.374315-1-rongqianfeng@vivo.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 5058a62 commit 8f3e4e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

block/bfq-iosched.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5847,8 +5847,7 @@ static struct bfq_queue *bfq_get_queue(struct bfq_data *bfqd,
58475847
goto out;
58485848
}
58495849

5850-
bfqq = kmem_cache_alloc_node(bfq_pool,
5851-
GFP_NOWAIT | __GFP_ZERO | __GFP_NOWARN,
5850+
bfqq = kmem_cache_alloc_node(bfq_pool, GFP_NOWAIT | __GFP_ZERO,
58525851
bfqd->queue->node);
58535852

58545853
if (bfqq) {

0 commit comments

Comments
 (0)