[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y3zFzdWnWlEJ8X8/@infradead.org>
Date: Tue, 22 Nov 2022 04:51:25 -0800
From: Christoph Hellwig <hch@...radead.org>
To: David Howells <dhowells@...hat.com>
Cc: Al Viro <viro@...iv.linux.org.uk>, Christoph Hellwig <hch@....de>,
John Hubbard <jhubbard@...dia.com>,
Matthew Wilcox <willy@...radead.org>,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
Christoph Hellwig <hch@...radead.org>,
Jeff Layton <jlayton@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH 2/4] iov_iter: Add a function to extract a page list
from an iterator
On Thu, Nov 17, 2022 at 02:54:54PM +0000, David Howells wrote:
> An additional function, iov_iter_extract_mode() is also provided so that the
> mode of retention that will be employed for an iterator can be queried - and
> therefore how the caller should dispose of the pages later.
Any reason to not just add an out paramter to the main function and
return this directly instead of an extra helper?
> +EXPORT_SYMBOL(iov_iter_extract_pages);
get_user_pages_fast, pin_user_pages_fast are very intentionally
EXPORT_SYMBOL_GPL, which should not be bypassed by an iov_* wrapper.
Powered by blists - more mailing lists