]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: switch scsi_bios_ptable() and scsi_partsize() to gendisk
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 22 May 2024 03:08:31 +0000 (23:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 13 Aug 2025 06:59:28 +0000 (02:59 -0400)
commit1fd143c24fb621f063f913cb1e48cc688c7eca15
tree5e731613c4f5eb231ebd50da4b2eb3f0bdfc9ad3
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
scsi: switch scsi_bios_ptable() and scsi_partsize() to gendisk

Both helpers are reading the partition table of the disk specified
by block_device of some partition on it; result depends only upon
the disk in question, so we might as well pass the struct gendisk
instead.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/scsi/scsi_mid_low_api.rst
drivers/scsi/BusLogic.c
drivers/scsi/aacraid/linit.c
drivers/scsi/aic7xxx/aic79xx_osm.c
drivers/scsi/aic7xxx/aic7xxx_osm.c
drivers/scsi/arcmsr/arcmsr_hba.c
drivers/scsi/fdomain.c
drivers/scsi/megaraid.c
drivers/scsi/scsicam.c
include/scsi/scsicam.h