block: store a block_device pointer in struct bio
authorChristoph Hellwig <hch@lst.de>
Sun, 24 Jan 2021 10:02:34 +0000 (11:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 01:17:20 +0000 (18:17 -0700)
commit309dca309fc39a9e3c31b916393b74bd174fd74e
tree2d4687a800a52cfd96482c7c01224236da796102
parentcf9a978f9781fb30b778ee61ef6bd164c655d9ff
block: store a block_device pointer in struct bio

Replace the gendisk pointer in struct bio with a pointer to the newly
improved struct block device.  From that the gendisk can be trivially
accessed with an extra indirection, but it also allows to directly
look up all information related to partition remapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
55 files changed:
arch/m68k/emu/nfblock.c
arch/xtensa/platforms/iss/simdisk.c
block/bio-integrity.c
block/bio.c
block/blk-cgroup.c
block/blk-core.c
block/blk-crypto-fallback.c
block/blk-crypto.c
block/blk-merge.c
block/blk-mq.c
block/blk-throttle.c
block/blk.h
block/bounce.c
block/genhd.c
drivers/block/brd.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_req.c
drivers/block/null_blk/main.c
drivers/block/pktcdvd.c
drivers/block/ps3vram.c
drivers/block/rsxx/dev.c
drivers/block/umem.c
drivers/block/zram/zram_drv.c
drivers/lightnvm/pblk-init.c
drivers/md/bcache/debug.c
drivers/md/bcache/request.c
drivers/md/dm-bio-record.h
drivers/md/dm-raid1.c
drivers/md/dm.c
drivers/md/md-linear.c
drivers/md/md.c
drivers/md/md.h
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c
drivers/nvdimm/blk.c
drivers/nvdimm/btt.c
drivers/nvdimm/pmem.c
drivers/nvme/host/core.c
drivers/nvme/host/lightnvm.c
drivers/nvme/host/multipath.c
drivers/nvme/host/rdma.c
drivers/s390/block/dcssblk.c
drivers/s390/block/xpram.c
fs/btrfs/check-integrity.c
fs/btrfs/raid56.c
fs/btrfs/scrub.c
fs/direct-io.c
fs/f2fs/data.c
include/linux/bio.h
include/linux/blk-mq.h
include/linux/blk_types.h
include/linux/blkdev.h
kernel/trace/blktrace.c
mm/page_io.c