summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2003-04-24 08:42:43 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-04-24 08:42:43 -0700
commit3bec8a5ac61e5fdd925460a20de267ccf2cefcfe (patch)
tree04c5abbaa34cafd7eb1fda98bd1da25ba634e87f /include/linux
parent2f2ba9da7c2732dbf73b4c56ca4f57c7fa41f459 (diff)
[PATCH] cleanup bio_map_user and helper
Bart did this patch, I changed it a bit. Basically it cleans the mapping interface up a bit, and adds a little helper to set up the request from the bio. In addition, it fixes a long standing bug where bio_map_user() would call blk_queue_bounce() without the direction bit being set, auch. - Abstract out bio request preparation - Have bio_map_user() set data direction (fixes bug where blk_queue_bounce() is called without it set) - Split bio_map_user() in two
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blkdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 36741d178f34..3899acc8a4f1 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -391,6 +391,8 @@ extern void blk_queue_free_tags(request_queue_t *);
extern void blk_queue_invalidate_tags(request_queue_t *);
extern void blk_congestion_wait(int rw, long timeout);
+extern void blk_rq_bio_prep(request_queue_t *, struct request *, struct bio *);
+
#define MAX_PHYS_SEGMENTS 128
#define MAX_HW_SEGMENTS 128
#define MAX_SECTORS 255