On Mon, 24 Apr 2023 22:13:18 +0900, 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 making bdev_set_nr_sectors() > a block layer internal function defined in block/bdev.c instead of > having this function statically defined in block/partitions/core.c. > With this change, set_capacity() implementation can be simplified to > only calling bdev_set_nr_sectors(). > > [...] Applied, thanks! [1/1] block: Cleanup set_capacity()/bdev_set_nr_sectors() commit: 83794367dcc6749662b17a1e4b8ec085023fc53b Best regards, -- Jens Axboe