diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-24 09:34:24 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-01 14:53:40 -0700 |
commit | 29ff57c61094e7bbd921ab10b5a99dce9a0132e0 (patch) | |
tree | 76d8351cff0fdd01e9261fd0e4374e464d2899ca /block/genhd.c | |
parent | 15e3d2c5cd53298272e59ad9072d3468f9dd3781 (diff) | |
download | lwn-29ff57c61094e7bbd921ab10b5a99dce9a0132e0.tar.gz lwn-29ff57c61094e7bbd921ab10b5a99dce9a0132e0.zip |
block: move the start_sect field to struct block_device
Move the start_sect field to struct block_device in preparation
of killing struct hd_struct.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/genhd.c b/block/genhd.c index 2cbda8139556..5efb2df1f079 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -305,8 +305,8 @@ EXPORT_SYMBOL_GPL(disk_part_iter_exit); static inline int sector_in_part(struct hd_struct *part, sector_t sector) { - return part->start_sect <= sector && - sector < part->start_sect + bdev_nr_sectors(part->bdev); + return part->bdev->bd_start_sect <= sector && + sector < part->bdev->bd_start_sect + bdev_nr_sectors(part->bdev); } /** |