csum_and_copy_to_iter(): handle ITER_DISCARD
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 16 Sep 2022 00:20:59 +0000 (20:20 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Nov 2022 18:01:20 +0000 (13:01 -0500)
commitc67f1fd2b2b79299e617eca1c17f168d19e58510
treecd45f563ba7b14a808be949c1dea2d5b38a8d5af
parent40a86061a5619da8b2840efe1b26696077785cf1
csum_and_copy_to_iter(): handle ITER_DISCARD

Not hard to implement - we are not copying anything here, so
csum_and_memcpy() is not usable, but calculating a checksum
of source directly is trivial...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c