RE: [PATCH v4 05/13] iov: Move iterator functions to a header file

From: David Laight
Date: Thu Sep 14 2023 - 05:06:53 EST


From: David Howells
> Sent: 13 September 2023 17:57
>
> Move the iterator functions to a header file so that other operations that
> need to scan over an iterator can be added. For instance, the rbd driver
> could use this to scan a buffer to see if it is all zeros and libceph could
> use this to generate a crc.

These all look a bit big for being more generally inlined.

I know you want to avoid the indirect call in the normal cases,
but maybe it would be ok for other uses?

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)