[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZNoq0PNpFM8l8vAe@casper.infradead.org>
Date: Mon, 14 Aug 2023 14:23:28 +0100
From: Matthew Wilcox <willy@...radead.org>
To: David Howells <dhowells@...hat.com>
Cc: Alexander Viro <viro@...iv.linux.org.uk>,
Jens Axboe <axboe@...nel.dk>, Christoph Hellwig <hch@....de>,
Christian Brauner <christian@...uner.io>,
Linus Torvalds <torvalds@...ux-foundation.org>,
jlayton@...nel.org, linux-block@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH] iov_iter: Convert iterate*() to inline funcs
On Fri, Aug 11, 2023 at 03:32:09PM +0100, David Howells wrote:
> @@ -578,10 +683,11 @@ size_t copy_page_from_iter_atomic(struct page *page, unsigned offset, size_t byt
> kunmap_atomic(kaddr);
> return 0;
> }
> - iterate_and_advance(i, bytes, base, len, off,
> - copyin(p + off, base, len),
> - memcpy_from_iter(i, p + off, base, len)
> - )
> +
> + bytes = iterate_and_advance(i, bytes, p,
> + copy_from_user_iter,
> + iov_iter_is_copy_mc(i) ?
> + memcpy_from_iter_mc : memcpy_from_iter);
> kunmap_atomic(kaddr);
> return bytes;
> }
Please work against linux-next; this function is completely rewritten
there.
Powered by blists - more mailing lists