diff options
Diffstat (limited to 'block/blk-map.c')
-rw-r--r-- | block/blk-map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-map.c b/block/blk-map.c index 2990447f45e9..c7e55b23a2bc 100644 --- a/block/blk-map.c +++ b/block/blk-map.c | |||
@@ -150,6 +150,9 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq, | |||
150 | bio = rq->bio; | 150 | bio = rq->bio; |
151 | bytes_read += ret; | 151 | bytes_read += ret; |
152 | ubuf += ret; | 152 | ubuf += ret; |
153 | |||
154 | if (map_data) | ||
155 | map_data->offset += ret; | ||
153 | } | 156 | } |
154 | 157 | ||
155 | if (!bio_flagged(bio, BIO_USER_MAPPED)) | 158 | if (!bio_flagged(bio, BIO_USER_MAPPED)) |