diff options
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1490,11 +1490,12 @@ struct bio_pair *bio_split(struct bio *bi, int first_sectors) | |||
1490 | sector_t bio_sector_offset(struct bio *bio, unsigned short index, | 1490 | sector_t bio_sector_offset(struct bio *bio, unsigned short index, |
1491 | unsigned int offset) | 1491 | unsigned int offset) |
1492 | { | 1492 | { |
1493 | unsigned int sector_sz = queue_hardsect_size(bio->bi_bdev->bd_disk->queue); | 1493 | unsigned int sector_sz; |
1494 | struct bio_vec *bv; | 1494 | struct bio_vec *bv; |
1495 | sector_t sectors; | 1495 | sector_t sectors; |
1496 | int i; | 1496 | int i; |
1497 | 1497 | ||
1498 | sector_sz = queue_logical_block_size(bio->bi_bdev->bd_disk->queue); | ||
1498 | sectors = 0; | 1499 | sectors = 0; |
1499 | 1500 | ||
1500 | if (index >= bio->bi_idx) | 1501 | if (index >= bio->bi_idx) |