diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2023-01-19 22:33:41 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2023-02-14 20:22:32 +0100 |
commit | ab75bff1140733f1b43e81f055acd7d27af7ac05 (patch) | |
tree | e115ad23d222151ab985359b82b44a206649cc08 /include | |
parent | NFS: Add a helper nfs_wb_folio() (diff) | |
download | linux-ab75bff1140733f1b43e81f055acd7d27af7ac05.tar.xz linux-ab75bff1140733f1b43e81f055acd7d27af7ac05.zip |
NFS: Convert buffered reads to use folios
Perform a largely mechanical conversion of references to struct page and
page-specific functions to use the folio equivalents.
Note that the fscache functionality remains untouched. Instead we just
pass in the folio page. This should be OK, as long as we use order 0
folios together with fscache.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_page.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index b0b03ec4a209..3c71493d5cc3 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h @@ -125,6 +125,10 @@ extern struct nfs_page *nfs_create_request(struct nfs_open_context *ctx, struct page *page, unsigned int offset, unsigned int count); +extern struct nfs_page *nfs_page_create_from_folio(struct nfs_open_context *ctx, + struct folio *folio, + unsigned int offset, + unsigned int count); extern void nfs_release_request(struct nfs_page *); |