diff options
| author | Trond Myklebust <[email protected]> | 2023-01-19 16:33:47 -0500 |
|---|---|---|
| committer | Anna Schumaker <[email protected]> | 2023-02-14 14:22:33 -0500 |
| commit | 70e9db69f927bb378db9aaa807cc83ae550779a9 (patch) | |
| tree | c24460dd4bc8463428905e679adbd19866ee2a5b /include/linux | |
| parent | 4fa7a717b432c3311192aa85a34fedf5f8de4689 (diff) | |
NFS: Clean up O_DIRECT request allocation
Rather than adjusting the index+offset after the call to
nfs_create_request(), add a function nfs_page_create_from_page() that
takes an offset.
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs_page.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index 3c71493d5cc3..a2f1ca657623 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h @@ -121,10 +121,11 @@ struct nfs_pageio_descriptor { #define NFS_WBACK_BUSY(req) (test_bit(PG_BUSY,&(req)->wb_flags)) -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_page(struct nfs_open_context *ctx, + struct page *page, + unsigned int pgbase, + loff_t offset, + unsigned int count); extern struct nfs_page *nfs_page_create_from_folio(struct nfs_open_context *ctx, struct folio *folio, unsigned int offset, |