summaryrefslogtreecommitdiff
path: root/lib/iov_iter.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-05-02 17:01:22 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2021-06-10 11:45:08 -0400
commit556351c1c09ad6511bc2eaa2c214992192f50410 (patch)
tree7915f36642677b86e1910e5b2b47648558e6c22a /lib/iov_iter.c
parent28f38db7edbfa6d7736cd7a3a7aec76660bfef57 (diff)
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>
Diffstat (limited to 'lib/iov_iter.c')
-rw-r--r--lib/iov_iter.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/iov_iter.c b/lib/iov_iter.c
index bdcf1fbeb2db..e6c5834da32d 100644
--- a/lib/iov_iter.c
+++ b/lib/iov_iter.c
@@ -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; \