[Linux-cachefs] [PATCH v2] netfs: Make @file optional in netfs_alloc_read_request()

David Howells dhowells at redhat.com
Thu Jan 13 13:27:11 UTC 2022


Jeffle Xu <jefflexu at linux.alibaba.com> wrote:

> Make the @file parameter optional, and derive inode from the @folio
> parameter instead in order to support file system internal requests.
> 
> @file parameter can't be removed completely, since it also works as
> the private data of ops->init_rreq().

Note that I'm working towards a model where you would ordinarily point your
file operations and/or address-space operations directly at the netfs
functions.  This will require filesystems that use it to add a bit to their
fs-specific inode structs directly after the struct inode member.

David




More information about the Linux-cachefs mailing list