summaryrefslogtreecommitdiffstats
path: root/block/blk-lib.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-24 09:34:24 +0100
committerJens Axboe <axboe@kernel.dk>2020-12-01 14:53:40 -0700
commit29ff57c61094e7bbd921ab10b5a99dce9a0132e0 (patch)
tree76d8351cff0fdd01e9261fd0e4374e464d2899ca /block/blk-lib.c
parent15e3d2c5cd53298272e59ad9072d3468f9dd3781 (diff)
downloadlinux-29ff57c61094e7bbd921ab10b5a99dce9a0132e0.tar.gz
linux-29ff57c61094e7bbd921ab10b5a99dce9a0132e0.tar.bz2
linux-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/blk-lib.c')
-rw-r--r--block/blk-lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-lib.c b/block/blk-lib.c
index e90614fd8d6a..752f9c722062 100644
--- a/block/blk-lib.c
+++ b/block/blk-lib.c
@@ -65,7 +65,7 @@ int __blkdev_issue_discard(struct block_device *bdev, sector_t sector,
/* In case the discard request is in a partition */
if (bdev_is_partition(bdev))
- part_offset = bdev->bd_part->start_sect;
+ part_offset = bdev->bd_start_sect;
while (nr_sects) {
sector_t granularity_aligned_lba, req_sects;