Linux block layer
 help / color / mirror / Atom feed
* [RFC][PATCHES] convert ->getgeo() from block_device of partition to gendisk
@ 2025-07-18 19:26 Al Viro
  2025-07-18 19:27 ` [RFC][PATCH 1/3] scsi: switch scsi_bios_ptable() and scsi_partsize() " Al Viro
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Al Viro @ 2025-07-18 19:26 UTC (permalink / raw)
  To: linux-block; +Cc: Jens Axboe, Christoph Hellwig

	Instances of ->getgeo() get a block_device of partition and
fill the (mostly fake) geometry information of the disk into caller's
struct hd_geometry.  It *does* contain one member related to specific
partition (the starting sector), but... that member is actually filled
by the callers of ->getgeo() (blkdev_getgeo() and compat_hdio_getgeo()),
leaving the instances partition-agnostic.

	All actual work is done using bdev->bd_disk, be it the disk
capacity, IO, or cached geometry information.  AFAICS, it would make
more sense to pass it gendisk to start with.

	The series is pretty straightforward - conversion of scsi_bios_ptable()
and scsi_partsize() to gendisk, then the same for ->bios_param(), then
->getgeo() itself.   It sits in viro/vfs.git#rebase.getgeo, individual patches
in followups.

	Comments, objections?

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-09-03 21:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18 19:26 [RFC][PATCHES] convert ->getgeo() from block_device of partition to gendisk Al Viro
2025-07-18 19:27 ` [RFC][PATCH 1/3] scsi: switch scsi_bios_ptable() and scsi_partsize() " Al Viro
2025-07-18 19:28 ` [RFC][PATCH 2/3] scsi: switch ->bios_param() to passing gendisk Al Viro
2025-07-18 19:29 ` [RFC][PATCH 3/3] block: switch ->getgeo() to struct gendisk Al Viro
2025-07-18 21:20 ` [RFC][PATCHES] convert ->getgeo() from block_device of partition to gendisk Jens Axboe
2025-09-03 14:09   ` Al Viro
2025-09-03 18:58     ` Jens Axboe
2025-09-03 20:07       ` Al Viro
2025-09-03 21:16         ` Jens Axboe
2025-07-21  6:27 ` Christoph Hellwig
2025-07-22  3:30 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox