mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
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:
parent
28f38db7ed
commit
556351c1c0
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user