[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141122033639.GY7996@ZenIV.linux.org.uk>
Date: Sat, 22 Nov 2014 03:36:39 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, target-devel@...r.kernel.org,
"Nicholas A. Bellinger" <nab@...ux-iscsi.org>,
Christoph Hellwig <hch@...radead.org>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [RFC] situation with csum_and_copy_... API
On Sat, Nov 22, 2014 at 03:27:18AM +0000, Al Viro wrote:
> @@ -566,38 +445,15 @@ static size_t copy_to_iter_bvec(void *from, size_t bytes, struct iov_iter *i)
[snip]
> + iterate_bvec(i, bytes, page, off, len, true,
> + memcpy_from_page((from += len) - len, page, off, len))
should be
+ memcpy_to_page(page, off, (from += len) - len, len))
and
> @@ -605,35 +461,9 @@ static size_t copy_from_iter_bvec(void *to, size_t bytes, struct iov_iter *i)
[snip]
> + iterate_bvec(i, bytes, page, off, len, true,
> + memcpy_to_page(page, off, (to += len) - len, len))
should be
+ memcpy_from_page((to += len) - len, page, off, len))
Sorry, wrong delta.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists