]> git.baikalelectronics.ru Git - kernel.git/commitdiff
block: move three bvec helpers declaration into private helper
authorMing Lei <ming.lei@redhat.com>
Mon, 11 Jan 2021 03:05:56 +0000 (11:05 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 04:24:06 +0000 (21:24 -0700)
bvec_alloc(), bvec_free() and bvec_nr_vecs() are only used inside block
layer core functions, no need to declare them in public header.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
include/linux/bio.h

index ab0aaf958553bca8f257ef7b7c4f3d71e46c88d6..0198335c58388108f5b776e6d3a0646df0ffc5fb 100644 (file)
@@ -55,6 +55,10 @@ void blk_free_flush_queue(struct blk_flush_queue *q);
 
 void blk_freeze_queue(struct request_queue *q);
 
+struct bio_vec *bvec_alloc(gfp_t, int, unsigned long *, mempool_t *);
+void bvec_free(mempool_t *, struct bio_vec *, unsigned int);
+unsigned int bvec_nr_vecs(unsigned short idx);
+
 static inline bool biovec_phys_mergeable(struct request_queue *q,
                struct bio_vec *vec1, struct bio_vec *vec2)
 {
index 5d8977aafa199e4ee38f17d6b45ec3867f22b9e5..e135b500df5da1d7dbbd3019055533e7c3df7684 100644 (file)
@@ -478,9 +478,6 @@ static inline void zero_fill_bio(struct bio *bio)
        zero_fill_bio_iter(bio, bio->bi_iter);
 }
 
-extern struct bio_vec *bvec_alloc(gfp_t, int, unsigned long *, mempool_t *);
-extern void bvec_free(mempool_t *, struct bio_vec *, unsigned int);
-extern unsigned int bvec_nr_vecs(unsigned short idx);
 extern const char *bio_devname(struct bio *bio, char *buffer);
 
 #define bio_set_dev(bio, bdev)                                 \