aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bio.h
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2012-09-10 17:41:12 -0400
committerKent Overstreet <koverstreet@google.com>2013-03-23 17:15:32 -0400
commit9e882242c6193ae6f416f2d8d8db0d9126bd996b (patch)
tree388e4a9ef2ab3693eaee77a8bffabc62a9b86d7f /include/linux/bio.h
parent2f477877f8c4be18f054aeb7c4be8cc748cfe932 (diff)
block: Add submit_bio_wait(), remove from md
Random cleanup - this code was duplicated and it's not really specific to md. Also added the ability to return the actual error code. Signed-off-by: Kent Overstreet <koverstreet@google.com> CC: Jens Axboe <axboe@kernel.dk> CC: NeilBrown <neilb@suse.de> Acked-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r--include/linux/bio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 20507eb7c979..b20a9cd776dd 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -249,6 +249,7 @@ extern void bio_endio(struct bio *, int);
249struct request_queue; 249struct request_queue;
250extern int bio_phys_segments(struct request_queue *, struct bio *); 250extern int bio_phys_segments(struct request_queue *, struct bio *);
251 251
252extern int submit_bio_wait(int rw, struct bio *bio);
252extern void bio_advance(struct bio *, unsigned); 253extern void bio_advance(struct bio *, unsigned);
253 254
254extern void bio_init(struct bio *); 255extern void bio_init(struct bio *);