]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: sd: sd_zbc: Introduce struct zoned_disk_info
authorBart Van Assche <bvanassche@acm.org>
Thu, 21 Apr 2022 18:30:18 +0000 (11:30 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:04 +0000 (23:23 -0400)
commit7b1eee58debad0f999624b1142e40af789f15905
tree43039f716218ecdae5abe7ed973794fa77409de9
parent570cf9c1d8a862c261e379bcf85195546acba6a8
scsi: sd: sd_zbc: Introduce struct zoned_disk_info

Deriving the meaning of the nr_zones, rev_nr_zones, zone_blocks and
rev_zone_blocks member variables requires careful analysis of the source
code. Make the meaning of these member variables easier to understand by
introducing struct zoned_disk_info.

Link: https://lore.kernel.org/r/20220421183023.3462291-5-bvanassche@acm.org
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.h
drivers/scsi/sd_zbc.c