]> git.karo-electronics.de Git - linux-beck.git/commitdiff
block, fs: move submit_bio to bio.h
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Nov 2016 13:40:12 +0000 (07:40 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 1 Nov 2016 15:43:26 +0000 (09:43 -0600)
This is where all the other bio operations live, so users must include
bio.h anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/bio.h
include/linux/fs.h

index fe9a1701760816af17b2bd8a4487ec89e33c1dc2..5c604b4914bfaa7b28197eecb901322c2069f102 100644 (file)
@@ -404,6 +404,8 @@ static inline struct bio *bio_clone_kmalloc(struct bio *bio, gfp_t gfp_mask)
 
 }
 
+extern blk_qc_t submit_bio(struct bio *);
+
 extern void bio_endio(struct bio *);
 
 static inline void bio_io_error(struct bio *bio)
index 0ad36e0c7fa795656bd9717dce07080f8f1d3fe2..5b0a9b77534d202a04f38112d9139d9cd46ef74f 100644 (file)
@@ -2717,7 +2717,6 @@ static inline void remove_inode_hash(struct inode *inode)
 extern void inode_sb_list_add(struct inode *inode);
 
 #ifdef CONFIG_BLOCK
-extern blk_qc_t submit_bio(struct bio *);
 extern int bdev_read_only(struct block_device *);
 #endif
 extern int set_blocksize(struct block_device *, int);