Re: [PATCH 13/20] block: remove ->bd_contains

2020-11-20 Thread Christoph Hellwig
On Thu, Nov 19, 2020 at 11:32:53AM +0100, Jan Kara wrote: > > @@ -1521,7 +1510,7 @@ static int __blkdev_get(struct block_device *bdev, > > fmode_t mode, void *holder, > > if (bdev->bd_bdi == &noop_backing_dev_info) > > bdev->bd_bdi = bdi_get(disk->queue->backing_dev

Re: [PATCH 13/20] block: remove ->bd_contains

2020-11-19 Thread Jan Kara
On Wed 18-11-20 09:47:53, Christoph Hellwig wrote: > 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 Hel

[PATCH 13/20] block: remove ->bd_contains

2020-11-18 Thread Christoph Hellwig
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 --- drivers/scsi/scsicam.c| 2 +- fs/block_dev.c