projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28f38db
)
iov_iter_advance(): don't modify ->iov_offset for ITER_DISCARD
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 2 May 2021 21:01:22 +0000
(17:01 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 10 Jun 2021 15:45:08 +0000
(11:45 -0400)
the field is not used for that flavour
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c
patch
|
blob
|
history
diff --git
a/lib/iov_iter.c
b/lib/iov_iter.c
index
bdcf1fb
..
e6c5834
100644
(file)
--- 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; \