block: remove i_bdev
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Nov 2020 12:38:40 +0000 (13:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:39 +0000 (14:53 -0700)
commit4e7b5671c6a883d94b5428e1a9c141bbd56cb2a6
tree862980514dedf92e87aa3ec651f5be306f207390
parent7918f0f6fdafa1e52c2d77c537cb55ef25fb69a3
block: remove i_bdev

Switch the block device lookup interfaces to directly work with a dev_t
so that struct block_device references are only acquired by the
blkdev_get variants (and the blk-cgroup special case).  This means that
we now don't need an extra reference in the inode and can generally
simplify handling of struct block_device to keep the lookups contained
in the core block layer code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Coly Li <colyli@suse.de> [bcache]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
18 files changed:
block/ioctl.c
drivers/block/loop.c
drivers/md/bcache/super.c
drivers/md/dm-table.c
drivers/mtd/mtdsuper.c
drivers/target/target_core_file.c
drivers/usb/gadget/function/storage_common.c
fs/block_dev.c
fs/btrfs/volumes.c
fs/inode.c
fs/internal.h
fs/io_uring.c
fs/pipe.c
fs/quota/quota.c
fs/statfs.c
fs/super.c
include/linux/blkdev.h
include/linux/fs.h