diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-21 23:08:31 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-13 02:59:28 -0400 |
commit | 1fd143c24fb621f063f913cb1e48cc688c7eca15 (patch) | |
tree | 5e731613c4f5eb231ebd50da4b2eb3f0bdfc9ad3 /include | |
parent | 8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsicam.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/scsi/scsicam.h b/include/scsi/scsicam.h index 08edd603e521..67f4e8835bc8 100644 --- a/include/scsi/scsicam.h +++ b/include/scsi/scsicam.h @@ -13,7 +13,8 @@ #ifndef SCSICAM_H #define SCSICAM_H +struct gendisk; int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip); -bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]); -unsigned char *scsi_bios_ptable(struct block_device *bdev); +bool scsi_partsize(struct gendisk *disk, sector_t capacity, int geom[3]); +unsigned char *scsi_bios_ptable(struct gendisk *disk); #endif /* def SCSICAM_H */ |