Skip to content

Commit b131f20

Browse files
Ming Leiaxboe
authored andcommitted
blk-mq: rename blk_attempt_bio_merge
It is very annoying to have two block layer functions which share same name, so rename blk_attempt_bio_merge in blk-mq.c as blk_mq_attempt_bio_merge. Cc: Christoph Hellwig <[email protected]> Signed-off-by: Ming Lei <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 10f7335 commit b131f20

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

block/blk-mq.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,8 +2495,9 @@ static inline unsigned short blk_plug_max_rq_count(struct blk_plug *plug)
24952495
return BLK_MAX_REQUEST_COUNT;
24962496
}
24972497

2498-
static bool blk_attempt_bio_merge(struct request_queue *q, struct bio *bio,
2499-
unsigned int nr_segs, bool *same_queue_rq)
2498+
static bool blk_mq_attempt_bio_merge(struct request_queue *q,
2499+
struct bio *bio, unsigned int nr_segs,
2500+
bool *same_queue_rq)
25002501
{
25012502
if (!blk_queue_nomerges(q) && bio_mergeable(bio)) {
25022503
if (blk_attempt_plug_merge(q, bio, nr_segs, same_queue_rq))
@@ -2524,7 +2525,7 @@ static struct request *blk_mq_get_new_requests(struct request_queue *q,
25242525
return NULL;
25252526
if (unlikely(!submit_bio_checks(bio)))
25262527
goto put_exit;
2527-
if (blk_attempt_bio_merge(q, bio, nsegs, same_queue_rq))
2528+
if (blk_mq_attempt_bio_merge(q, bio, nsegs, same_queue_rq))
25282529
goto put_exit;
25292530

25302531
rq_qos_throttle(q, bio);
@@ -2560,7 +2561,8 @@ static inline struct request *blk_mq_get_request(struct request_queue *q,
25602561
if (rq && rq->q == q) {
25612562
if (unlikely(!submit_bio_checks(bio)))
25622563
return NULL;
2563-
if (blk_attempt_bio_merge(q, bio, nsegs, same_queue_rq))
2564+
if (blk_mq_attempt_bio_merge(q, bio, nsegs,
2565+
same_queue_rq))
25642566
return NULL;
25652567
plug->cached_rq = rq_list_next(rq);
25662568
INIT_LIST_HEAD(&rq->queuelist);

0 commit comments

Comments
 (0)