summaryrefslogtreecommitdiff
path: root/block/blk-map.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-24 09:25:39 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-10-11 17:23:40 -0400
commite81cef5d3001501350b4e596b4bd6dfd26187afa (patch)
treea668c5996d1a9a7627f8dde7162336188e7907e4 /block/blk-map.c
parentb282cc766958af161249b7b04d50e3eae12a2a1c (diff)
blk_rq_map_user_iov(): move iov_iter_advance() down
... into bio_{map,copy}_user_iov() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'block/blk-map.c')
-rw-r--r--block/blk-map.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-map.c b/block/blk-map.c
index 2547016aa7aa..891eea11f68e 100644
--- a/block/blk-map.c
+++ b/block/blk-map.c
@@ -69,7 +69,6 @@ static int __blk_rq_map_user_iov(struct request *rq,
if (map_data && map_data->null_mapped)
bio_set_flag(bio, BIO_NULL_MAPPED);
- iov_iter_advance(iter, bio->bi_iter.bi_size);
if (map_data)
map_data->offset += bio->bi_iter.bi_size;