iov_iter: pass void csum pointer to csum_and_copy_to_iter
authorSagi Grimberg <sagi@lightbitslabs.com>
Tue, 4 Dec 2018 01:52:07 +0000 (17:52 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 08:58:53 +0000 (09:58 +0100)
commitcb002d074dabfaa2248507fd9478d16a542e4f1e
tree9aac7c054f558aedd9d57f1dd19fdc8e3b20fa26
parent0fc07791bc775478d9450ca9c6c674b45f6c1998
iov_iter: pass void csum pointer to csum_and_copy_to_iter

The single caller to csum_and_copy_to_iter is skb_copy_and_csum_datagram
and we are trying to unite its logic with skb_copy_datagram_iter by passing
a callback to the copy function that we want to apply. Thus, we need
to make the checksum pointer private to the function.

Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sagi Grimberg <sagi@lightbitslabs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/uio.h
lib/iov_iter.c