On 8/20/19 11:14 PM, Chaitanya Kulkarni wrote:
This patch introduces helper function to read the number of sectors from struct block_device->bd_part member. For more details Please refer to the comment in the include/linux/genhd.h for part_nr_sects_read(). Reviewed-by: Minwoo Im <minwoo.im.dev@xxxxxxxxx> Reviewed-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
^^^^^^^^^^ This looks weird.