diff options
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r-- | include/linux/genhd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 2c0e1b597ab4..45a3682b5d87 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
@@ -412,7 +412,7 @@ extern void rand_initialize_disk(struct gendisk *disk); | |||
412 | 412 | ||
413 | static inline sector_t get_start_sect(struct block_device *bdev) | 413 | static inline sector_t get_start_sect(struct block_device *bdev) |
414 | { | 414 | { |
415 | return bdev->bd_contains == bdev ? 0 : bdev->bd_part->start_sect; | 415 | return bdev->bd_part->start_sect; |
416 | } | 416 | } |
417 | static inline sector_t get_capacity(struct gendisk *disk) | 417 | static inline sector_t get_capacity(struct gendisk *disk) |
418 | { | 418 | { |