Files
Ming Lei 9233268cb4 block: switch ->getgeo() to struct gendisk
JIRA: https://issues.redhat.com/browse/RHEL-144763

commit 4fc8728aa34f54835b72e4db0f3db76a72948b65
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Tue May 21 22:19:55 2024 -0400

    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>

Signed-off-by: Ming Lei <ming.lei@redhat.com>
2026-02-28 19:32:21 +08:00
..