diff options
Diffstat (limited to 'drivers/s390/char/tape_block.c')
-rw-r--r-- | drivers/s390/char/tape_block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/tape_block.c b/drivers/s390/char/tape_block.c index 86596d3813b5..5d035e4939dc 100644 --- a/drivers/s390/char/tape_block.c +++ b/drivers/s390/char/tape_block.c | |||
@@ -87,7 +87,7 @@ __tapeblock_end_request(struct tape_request *ccw_req, void *data) | |||
87 | if (ccw_req->rc == 0) | 87 | if (ccw_req->rc == 0) |
88 | /* Update position. */ | 88 | /* Update position. */ |
89 | device->blk_data.block_position = | 89 | device->blk_data.block_position = |
90 | (req->sector + req->nr_sectors) >> TAPEBLOCK_HSEC_S2B; | 90 | (blk_rq_pos(req) + blk_rq_sectors(req)) >> TAPEBLOCK_HSEC_S2B; |
91 | else | 91 | else |
92 | /* We lost the position information due to an error. */ | 92 | /* We lost the position information due to an error. */ |
93 | device->blk_data.block_position = -1; | 93 | device->blk_data.block_position = -1; |