On 4/20/23 21:31, Damien Le Moal wrote: > The code for setting a block device capacity (bd_nr_sectors field of > struct block_device) is duplicated in set_capacity() and > bdev_set_nr_sectors(). Clean this up by turning set_capacity() into an > inline function calling bdev_set_nr_sectors() and move > bdev_set_nr_sectors() code to block/bdev.c instead of having this > function in block/partitions/core.c. > > Signed-off-by: Damien Le Moal <dlemoal@xxxxxxxxxx> > --- > Looks good. Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx> -ck