Re: [dm-devel] [PATCH 26/45] block: remove ->bd_contains

2020-11-29 Thread Hannes Reinecke
On 11/28/20 5:14 PM, 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 Hellwig Reviewed-

[dm-devel] [PATCH 26/45] block: remove ->bd_contains

2020-11-28 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 Reviewed-by: Greg Kroah-Hartman Reviewed-by: Jan Kara A

Re: [dm-devel] [PATCH 26/45] block: remove ->bd_contains

2020-11-24 Thread Tejun Heo
On Tue, Nov 24, 2020 at 02:27:32PM +0100, 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-b

[dm-devel] [PATCH 26/45] block: remove ->bd_contains

2020-11-24 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 Reviewed-by: Greg Kroah-Hartman Reviewed-by: Jan Kara -