Re: [PATCH v2] block: Cleanup set_capacity()/bdev_set_nr_sectors()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux