summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-02-11 14:07:50 +0100
committerJens Axboe <axboe@fb.com>2015-02-11 11:24:14 -0700
commitd427e3c82ef4fc5fbb22c0cef0b040e6767b1028 (patch)
treeaa29959d3353fd28a3a1a5e52ee75dcbac9b7f2b /block
parenta0763b27bf24f028d8b049ad856b2ee031fb475d (diff)
downloadlinux-stable-d427e3c82ef4fc5fbb22c0cef0b040e6767b1028.tar.gz
linux-stable-d427e3c82ef4fc5fbb22c0cef0b040e6767b1028.tar.bz2
linux-stable-d427e3c82ef4fc5fbb22c0cef0b040e6767b1028.zip
block: remove unused function blk_bio_map_sg
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-merge.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/block/blk-merge.c b/block/blk-merge.c
index 9476b1528ded..fc1ff3b1ea1f 100644
--- a/block/blk-merge.c
+++ b/block/blk-merge.c
@@ -283,35 +283,6 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
}
EXPORT_SYMBOL(blk_rq_map_sg);
-/**
- * blk_bio_map_sg - map a bio to a scatterlist
- * @q: request_queue in question
- * @bio: bio being mapped
- * @sglist: scatterlist being mapped
- *
- * Note:
- * Caller must make sure sg can hold bio->bi_phys_segments entries
- *
- * Will return the number of sg entries setup
- */
-int blk_bio_map_sg(struct request_queue *q, struct bio *bio,
- struct scatterlist *sglist)
-{
- struct scatterlist *sg = NULL;
- int nsegs;
- struct bio *next = bio->bi_next;
- bio->bi_next = NULL;
-
- nsegs = __blk_bios_map_sg(q, bio, sglist, &sg);
- bio->bi_next = next;
- if (sg)
- sg_mark_end(sg);
-
- BUG_ON(bio->bi_phys_segments && nsegs > bio->bi_phys_segments);
- return nsegs;
-}
-EXPORT_SYMBOL(blk_bio_map_sg);
-
static inline int ll_new_hw_segment(struct request_queue *q,
struct request *req,
struct bio *bio)