]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: switch ->getgeo() to struct gendisk
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 22 May 2024 02:19:55 +0000 (22:19 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 13 Aug 2025 06:59:29 +0000 (02:59 -0400)
commit4fc8728aa34f54835b72e4db0f3db76a72948b65
tree0fb0b72d032c1d0b047cde1a398f9dd1ac8ac2e1
parent3eb50369c09efb0f668a7f568a7e6f7cf4194cde
block: switch ->getgeo() to struct gendisk

Instances are happier that way and it makes more sense anyway -
the only part of the result that is related to partition we are given
is the start sector, and that has been filled in by the caller.

Everything else is a function of the disk.  Only one instance
(DASD) is ever looking at anything other than bdev->bd_disk and
that one is trivial to adjust.

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>
27 files changed:
Documentation/filesystems/locking.rst
arch/m68k/emu/nfblock.c
arch/um/drivers/ubd_kern.c
block/ioctl.c
block/partitions/ibm.c
drivers/block/amiflop.c
drivers/block/aoe/aoeblk.c
drivers/block/floppy.c
drivers/block/mtip32xx/mtip32xx.c
drivers/block/rnbd/rnbd-clt.c
drivers/block/sunvdc.c
drivers/block/swim.c
drivers/block/virtio_blk.c
drivers/block/xen-blkfront.c
drivers/md/dm.c
drivers/md/md.c
drivers/memstick/core/ms_block.c
drivers/memstick/core/mspro_block.c
drivers/mmc/core/block.c
drivers/mtd/mtd_blkdevs.c
drivers/mtd/ubi/block.c
drivers/nvdimm/btt.c
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/s390/block/dasd.c
drivers/scsi/sd.c
include/linux/blkdev.h