block: remove struct request buffer member
authorJens Axboe <axboe@fb.com>
Thu, 10 Apr 2014 15:46:28 +0000 (09:46 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 15 Apr 2014 20:03:02 +0000 (14:03 -0600)
commitb4f42e2831ff9b9fa19252265d7c8985d47eefb9
tree6b4e9790eac3b9ca4b37eb140d7027f034411c8a
parentf89e0dd9d1a72fdf6b8958bcadfa6abf84f3cae0
block: remove struct request buffer member

This was used in the olden days, back when onions were proper
yellow. Basically it mapped to the current buffer to be
transferred. With highmem being added more than a decade ago,
most drivers map pages out of a bio, and rq->buffer isn't
pointing at anything valid.

Convert old style drivers to just use bio_data().

For the discard payload use case, just reference the page
in the bio.

Signed-off-by: Jens Axboe <axboe@fb.com>
23 files changed:
block/blk-core.c
block/blk-map.c
drivers/block/amiflop.c
drivers/block/ataflop.c
drivers/block/floppy.c
drivers/block/hd.c
drivers/block/mg_disk.c
drivers/block/paride/pcd.c
drivers/block/paride/pd.c
drivers/block/paride/pf.c
drivers/block/skd_main.c
drivers/block/swim.c
drivers/block/swim3.c
drivers/block/xen-blkfront.c
drivers/block/xsysace.c
drivers/block/z2ram.c
drivers/ide/ide-disk.c
drivers/md/dm.c
drivers/mtd/mtd_blkdevs.c
drivers/mtd/ubi/block.c
drivers/scsi/scsi_lib.c
drivers/scsi/sd.c
include/linux/blkdev.h