Re: [PATCH v2 6/7] nfs: Optimize direct I/O to use folios for requests
From: Christoph Hellwig
Date: Thu Jun 18 2026 - 10:11:15 EST
On Tue, Jun 16, 2026 at 05:23:48PM +0000, Pranjal Shrivastava wrote:
> AFAIU, the MM subsystem explicitly ensures that every valid struct page
> is part of a folio.
It is definitively not what the vision for the folio is, although if
I'm not mistaken it actually is still true right now. This whole
area is a minefield unfortunately, and we also ran into it with
iov_iter_extract_bvecs and the earlier block code it was extracted
from. Adding the relevant people and lists, but for now your best
bet is to stick to what the block code does or even better reuse
as much as possible of that code.