]> git.hungrycats.org Git - linux/commit
[PATCH] cleanup bio_map_user and helper
authorJens Axboe <axboe@suse.de>
Thu, 24 Apr 2003 15:42:43 +0000 (08:42 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 24 Apr 2003 15:42:43 +0000 (08:42 -0700)
commit3bec8a5ac61e5fdd925460a20de267ccf2cefcfe
tree04c5abbaa34cafd7eb1fda98bd1da25ba634e87f
parent2f2ba9da7c2732dbf73b4c56ca4f57c7fa41f459
[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
drivers/block/ll_rw_blk.c
drivers/block/scsi_ioctl.c
fs/bio.c
include/linux/blkdev.h