Commit 32f1c71b authored by Anuj Gupta's avatar Anuj Gupta Committed by Jens Axboe

block: rename bio_map_put to blk_mq_map_bio_put

This patch renames existing bio_map_put function to blk_mq_map_bio_put.
Signed-off-by: default avatarAnuj Gupta <anuj20.g@samsung.com>
Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220930062749.152261-9-anuj20.g@samsung.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 470e900c
...@@ -231,7 +231,7 @@ static int bio_copy_user_iov(struct request *rq, struct rq_map_data *map_data, ...@@ -231,7 +231,7 @@ static int bio_copy_user_iov(struct request *rq, struct rq_map_data *map_data,
return ret; return ret;
} }
static void bio_map_put(struct bio *bio) static void blk_mq_map_bio_put(struct bio *bio)
{ {
if (bio->bi_opf & REQ_ALLOC_CACHE) { if (bio->bi_opf & REQ_ALLOC_CACHE) {
bio_put(bio); bio_put(bio);
...@@ -331,7 +331,7 @@ static int bio_map_user_iov(struct request *rq, struct iov_iter *iter, ...@@ -331,7 +331,7 @@ static int bio_map_user_iov(struct request *rq, struct iov_iter *iter,
out_unmap: out_unmap:
bio_release_pages(bio, false); bio_release_pages(bio, false);
bio_map_put(bio); blk_mq_map_bio_put(bio);
return ret; return ret;
} }
...@@ -672,7 +672,7 @@ int blk_rq_unmap_user(struct bio *bio) ...@@ -672,7 +672,7 @@ int blk_rq_unmap_user(struct bio *bio)
next_bio = bio; next_bio = bio;
bio = bio->bi_next; bio = bio->bi_next;
bio_map_put(next_bio); blk_mq_map_bio_put(next_bio);
} }
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment