Re: [PATCH v3 03/13] block: refactor disk_update_zone_resources()
Hannes Reinecke <[email protected]>
| Newsgroups | org.kernel.vger.linux-block |
|---|---|
| Message-ID | <[email protected]> |
On 8/11/26 12:58 PM, Damien Le Moal wrote: > Since the function disk_update_zone_resources() does a lot of checks > beside updating a zoned disk limits and resources, rename this function > to disk_revalidate_zone_resources(). To keep all checks together, move > the capacity check in blk_revalidate_disk_zones() to this function and > simplify it by moving the check on the number of zones before the call to > queue_limits_start_update(). > > Signed-off-by: Damien Le Moal <[email protected]> > Reviewed-by: Bart Van Assche <[email protected]> > Reviewed-by: Christoph Hellwig <[email protected]> > --- > block/blk-zoned.c | 46 +++++++++++++++++++--------------------------- > 1 file changed, 19 insertions(+), 27 deletions(-) > Reviewed-by: Hannes Reinecke <[email protected]> Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect [email protected] +49 911 74053 688 SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich