aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 394c5bd81271..895e55b74a40 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1683,7 +1683,7 @@ static void blk_account_io_done(struct request *req)
1683unsigned int blk_rq_bytes(struct request *rq) 1683unsigned int blk_rq_bytes(struct request *rq)
1684{ 1684{
1685 if (blk_fs_request(rq)) 1685 if (blk_fs_request(rq))
1686 return rq->hard_nr_sectors << 9; 1686 return blk_rq_sectors(rq) << 9;
1687 1687
1688 return rq->data_len; 1688 return rq->data_len;
1689} 1689}