aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bio.h
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2021-01-11 11:05:56 +0800
committerJens Axboe <axboe@kernel.dk>2021-01-24 21:24:06 -0700
commiteec716a1c18c796a69db0be5e2a6f282ba5bccd6 (patch)
tree096de4ef7586904818aeb51c6dbfc3db9161fb16 /include/linux/bio.h
parentblock: set .bi_max_vecs as actual allocated vector number (diff)
downloadlinux-dev-eec716a1c18c796a69db0be5e2a6f282ba5bccd6.tar.xz
linux-dev-eec716a1c18c796a69db0be5e2a6f282ba5bccd6.zip
block: move three bvec helpers declaration into private helper
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>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r--include/linux/bio.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 5d8977aafa19..e135b500df5d 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -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) \