Skip to content

Commit 754a157

Browse files
Guoqing Jiangaxboe
authored andcommitted
block: remove unneeded argument from blk_alloc_flush_queue
Remove 'q' from arguments since it is not used anymore after commit 7e992f8 ("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>
1 parent 361301a commit 754a157

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎block/blk-flush.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask,
485485
}
486486
EXPORT_SYMBOL(blkdev_issue_flush);
487487

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)
490490
{
491491
struct blk_flush_queue *fq;
492492
int rq_sz = sizeof(struct request);

‎block/blk-mq.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,8 +2409,7 @@ blk_mq_alloc_hctx(struct request_queue *q, struct blk_mq_tag_set *set,
24092409
init_waitqueue_func_entry(&hctx->dispatch_wait, blk_mq_dispatch_wake);
24102410
INIT_LIST_HEAD(&hctx->dispatch_wait.entry);
24112411

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);
24142413
if (!hctx->fq)
24152414
goto free_bitmap;
24162415

‎block/blk.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ is_flush_rq(struct request *req, struct blk_mq_hw_ctx *hctx)
5555
return hctx->fq->flush_rq == req;
5656
}
5757

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);
6060
void blk_free_flush_queue(struct blk_flush_queue *q);
6161

6262
void blk_freeze_queue(struct request_queue *q);

0 commit comments

Comments
 (0)