]> www.infradead.org Git - users/hch/block.git/commit
block: remove ->bd_contains
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Nov 2020 12:29:55 +0000 (13:29 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 1 Dec 2020 08:07:56 +0000 (09:07 +0100)
commit52e020ba7654f945d740e60bf25fe360a32c1b67
tree552133c076142189bdb7f2b39dc80f793de84f27
parent11ad25ec0c2fbe45ffae476a3304f8bf783c21bd
block: remove ->bd_contains

Now that each hd_struct has a reference to the corresponding
block_device, there is no need for the bd_contains pointer.  Add
a bdev_whole() helper to look up the whole device block_device
struture instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
drivers/block/loop.c
drivers/scsi/scsicam.c
fs/block_dev.c
include/linux/blk_types.h