Commit 556351c1 authored by Al Viro's avatar Al Viro

iov_iter_advance(): don't modify ->iov_offset for ITER_DISCARD

the field is not used for that flavour
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 28f38db7
...@@ -172,8 +172,6 @@ ...@@ -172,8 +172,6 @@
} else if (iov_iter_is_xarray(i)) { \ } else if (iov_iter_is_xarray(i)) { \
struct bio_vec v; \ struct bio_vec v; \
iterate_xarray(i, n, v, skip, (X)) \ iterate_xarray(i, n, v, skip, (X)) \
} else if (iov_iter_is_discard(i)) { \
skip += n; \
} \ } \
i->count -= n; \ i->count -= n; \
i->iov_offset = skip; \ i->iov_offset = skip; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment