aboutsummaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-25 03:04:33 -0400
committerJens Axboe <axboe@kernel.dk>2019-04-30 11:26:41 -0400
commit4713839dfe8269d27d83a33d1e39f9c2970eb31a (patch)
tree1cad7f712e13fe99969850cdf91eff4fb017d3a6 /block/bio.c
parent2b070cfe582b8e99fec6ada57d2e59e194aae202 (diff)
block: remove the __bio_add_pc_page export
The same page optimization is a rather odd corner case, which is not used outside bio.c and which really should not be used outside of bio.c either - we have better highlevel helpers like the rq/bio mapping helpers. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block/bio.c b/block/bio.c
index 9ad0d00cdc9b..e717b303e1fb 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -709,7 +709,7 @@ static bool can_add_page_to_seg(struct request_queue *q,
709 * 709 *
710 * This should only be used by passthrough bios. 710 * This should only be used by passthrough bios.
711 */ 711 */
712int __bio_add_pc_page(struct request_queue *q, struct bio *bio, 712static int __bio_add_pc_page(struct request_queue *q, struct bio *bio,
713 struct page *page, unsigned int len, unsigned int offset, 713 struct page *page, unsigned int len, unsigned int offset,
714 bool put_same_page) 714 bool put_same_page)
715{ 715{
@@ -776,7 +776,6 @@ int __bio_add_pc_page(struct request_queue *q, struct bio *bio,
776 bio_set_flag(bio, BIO_SEG_VALID); 776 bio_set_flag(bio, BIO_SEG_VALID);
777 return len; 777 return len;
778} 778}
779EXPORT_SYMBOL(__bio_add_pc_page);
780 779
781int bio_add_pc_page(struct request_queue *q, struct bio *bio, 780int bio_add_pc_page(struct request_queue *q, struct bio *bio,
782 struct page *page, unsigned int len, unsigned int offset) 781 struct page *page, unsigned int len, unsigned int offset)