Skip to content

Commit e3e6831

Browse files
nj-shettyaxboe
authored andcommitted
block: remove unused nseg parameter
We are no longer using nr_segs, after blk_mq_attempt_bio_merge was moved out of blk_mq_get_new_request. Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com> Link: https://lore.kernel.org/r/20250401044348.15588-1-nj.shetty@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 0873308 commit e3e6831

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

block/blk-mq.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2965,8 +2965,7 @@ static bool blk_mq_attempt_bio_merge(struct request_queue *q,
29652965

29662966
static struct request *blk_mq_get_new_requests(struct request_queue *q,
29672967
struct blk_plug *plug,
2968-
struct bio *bio,
2969-
unsigned int nsegs)
2968+
struct bio *bio)
29702969
{
29712970
struct blk_mq_alloc_data data = {
29722971
.q = q,
@@ -3125,7 +3124,7 @@ void blk_mq_submit_bio(struct bio *bio)
31253124
if (rq) {
31263125
blk_mq_use_cached_rq(rq, plug, bio);
31273126
} else {
3128-
rq = blk_mq_get_new_requests(q, plug, bio, nr_segs);
3127+
rq = blk_mq_get_new_requests(q, plug, bio);
31293128
if (unlikely(!rq)) {
31303129
if (bio->bi_opf & REQ_NOWAIT)
31313130
bio_wouldblock_error(bio);

0 commit comments

Comments
 (0)