Re: [PATCH 4/9] block: add a new revalidate_disk_size helper

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

Re: [PATCH 4/9] block: add a new revalidate_disk_size helper

2020-09-01 Thread Song Liu
On Tue, Sep 1, 2020 at 9:00 AM Christoph Hellwig wrote: > [...] > drivers/md/md-cluster.c | 6 ++--- > drivers/md/md-linear.c| 2 +- > drivers/md/md.c | 10 - For md bits: Acked-by: Song Liu [...] > > +/** > + * revalidate_disk_size - checks for disk size

[PATCH 4/9] block: add a new revalidate_disk_size helper

2020-09-01 Thread Christoph Hellwig
revalidate_disk is a relative awkward helper for driver use, as it first calls an optional driver method and then updates the block device size, while most callers either don't need the method call at all, or want to keep state between the caller and the called method. Add a revalidate_disk_size h