Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: remove unneeded argument from blk_alloc_flush_queue

Remove 'q' from arguments since it is not used anymore after
commit 7e992f847a08e ("block: remove non mq parts from the
flush code").

Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Guoqing Jiang and committed by
Jens Axboe
754a1572 361301a2

+5 -6
+2 -2
block/blk-flush.c
··· 485 485 } 486 486 EXPORT_SYMBOL(blkdev_issue_flush); 487 487 488 - struct blk_flush_queue *blk_alloc_flush_queue(struct request_queue *q, 489 - int node, int cmd_size, gfp_t flags) 488 + struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size, 489 + gfp_t flags) 490 490 { 491 491 struct blk_flush_queue *fq; 492 492 int rq_sz = sizeof(struct request);
+1 -2
block/blk-mq.c
··· 2409 2409 init_waitqueue_func_entry(&hctx->dispatch_wait, blk_mq_dispatch_wake); 2410 2410 INIT_LIST_HEAD(&hctx->dispatch_wait.entry); 2411 2411 2412 - hctx->fq = blk_alloc_flush_queue(q, hctx->numa_node, set->cmd_size, 2413 - gfp); 2412 + hctx->fq = blk_alloc_flush_queue(hctx->numa_node, set->cmd_size, gfp); 2414 2413 if (!hctx->fq) 2415 2414 goto free_bitmap; 2416 2415
+2 -2
block/blk.h
··· 55 55 return hctx->fq->flush_rq == req; 56 56 } 57 57 58 - struct blk_flush_queue *blk_alloc_flush_queue(struct request_queue *q, 59 - int node, int cmd_size, gfp_t flags); 58 + struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size, 59 + gfp_t flags); 60 60 void blk_free_flush_queue(struct blk_flush_queue *q); 61 61 62 62 void blk_freeze_queue(struct request_queue *q);