diff options
author | Jens Axboe <axboe@suse.de> | 2005-06-20 08:06:01 -0400 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2005-06-20 08:06:01 -0400 |
commit | dd1cab95f356f1395278633565f198463cf6bd24 (patch) | |
tree | ddf12e2fad7c0df0656a10ee6aac3f12a04dbed8 /include/linux | |
parent | b823825e8e09aac6dc1ca362cd5639a87329d636 (diff) |
[PATCH] Cleanup blk_rq_map_* interfaces
Change the blk_rq_map_user() and blk_rq_map_kern() interface to require
a previously allocated request to be passed in. This is both more efficient
for multiple iterations of mapping data to the same request, and it is also
a much nicer API.
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blkdev.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 67339bc5f6bc..fc0dce078616 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -558,10 +558,9 @@ extern void blk_sync_queue(struct request_queue *q); | |||
558 | extern void __blk_stop_queue(request_queue_t *q); | 558 | extern void __blk_stop_queue(request_queue_t *q); |
559 | extern void blk_run_queue(request_queue_t *); | 559 | extern void blk_run_queue(request_queue_t *); |
560 | extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *); | 560 | extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *); |
561 | extern struct request *blk_rq_map_user(request_queue_t *, int, void __user *, unsigned int); | 561 | extern int blk_rq_map_user(request_queue_t *, struct request *, void __user *, unsigned int); |
562 | extern int blk_rq_unmap_user(struct request *, struct bio *, unsigned int); | 562 | extern int blk_rq_unmap_user(struct bio *, unsigned int); |
563 | extern struct request *blk_rq_map_kern(request_queue_t *, int, void *, | 563 | extern int blk_rq_map_kern(request_queue_t *, struct request *, void *, unsigned int, unsigned int); |
564 | unsigned int, unsigned int); | ||
565 | extern int blk_execute_rq(request_queue_t *, struct gendisk *, struct request *); | 564 | extern int blk_execute_rq(request_queue_t *, struct gendisk *, struct request *); |
566 | 565 | ||
567 | static inline request_queue_t *bdev_get_queue(struct block_device *bdev) | 566 | static inline request_queue_t *bdev_get_queue(struct block_device *bdev) |