[Linux-cachefs] [PATCH] 9p: Convert to new fscache API

David Howells dhowells at redhat.com
Wed Nov 18 15:02:58 UTC 2020


Dominique Martinet <asmadeus at codewreck.org> wrote:

> I take it the read helper would just iterate as long as there's data
> still required to read, writing from THPs wouldn't do that?

Yep.  As long as you read some data, the helper will call you again if you
didn't read everything.  subreq->transferred keeps track of what has been read
so far.  You can also tell the helper just to clear the rest by setting
NETFS_SREQ_CLEAR_TAIL.

The helper tries to hide the pages from you as far as possible.  Using
ITER_XARRAY hides that even more.

David




More information about the Linux-cachefs mailing list