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

the field is not used for that flavour

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2021-05-02 17:01:22 -04:00
parent 28f38db7ed
commit 556351c1c0

View File

@ -172,8 +172,6 @@
} else if (iov_iter_is_xarray(i)) { \
struct bio_vec v; \
iterate_xarray(i, n, v, skip, (X)) \
} else if (iov_iter_is_discard(i)) { \
skip += n; \
} \
i->count -= n; \
i->iov_offset = skip; \