[PATCH v3 net-next 01/21] iov_iter: Introduce new procedures for copy to iter/pages

Boris Pismenny borispismenny at gmail.com
Sun Feb 7 09:24:47 EST 2021


On 03/02/2021 18:56, Christoph Hellwig wrote:
> On Tue, Feb 02, 2021 at 08:00:51PM +0200, Or Gerlitz wrote:
>> will look into this, any idea for a more suitable location?
> 
> Maybe just a new file under lib/ for now?
> 

That doesn't work unless we copy quite a lot of code. There are macros
here (in lib/iov_iter.c) that we rely on, e.g. iterate_and_advance and
friends.

Instead, I propose that we place all of the new code under an ifdef to
reduce the impact on object size if the code is unused. We'll also
improve documentation around this commit.



More information about the Linux-nvme mailing list