# Re: \[PATCH 4/8\] block: move adjusting bd\_part\_count out of \_\_blkdev\_get

- From: Hannes Reinecke \<hare@suse.de\>
- Date: 2021-05-25 08:18:28 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/05/6402953
- Thread: https://ratatoskr.run/linux-block/2021/05/6402931/t.md

```text
On 5/25/21 8:12 AM, Christoph Hellwig wrote:
> Keep in the callers and thus remove the for_part argument.  This mirrors
> what is done on the blkdev_get side and slightly simplifies
> blkdev_get_part as well.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>   fs/block_dev.c | 16 +++++++---------
>   1 file changed, 7 insertions(+), 9 deletions(-)
> Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare@suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
```
