OSDN Git Service

block: remove the bio_phys_segments export
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 20:32:09 +0000 (21:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Dec 2018 13:17:53 +0000 (06:17 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c

index 036e3f0..fa1ea2a 100644 (file)
@@ -571,14 +571,13 @@ void bio_put(struct bio *bio)
 }
 EXPORT_SYMBOL(bio_put);
 
-inline int bio_phys_segments(struct request_queue *q, struct bio *bio)
+int bio_phys_segments(struct request_queue *q, struct bio *bio)
 {
        if (unlikely(!bio_flagged(bio, BIO_SEG_VALID)))
                blk_recount_segments(q, bio);
 
        return bio->bi_phys_segments;
 }
-EXPORT_SYMBOL(bio_phys_segments);
 
 /**
  *     __bio_clone_fast - clone a bio that shares the original bio's biovec