diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2023-01-19 22:33:36 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2023-02-14 20:22:32 +0100 |
commit | eb9f2a5a5e85fd24949480d1d02c2a497f26e154 (patch) | |
tree | 0d9496975d7c7a3f117aaf51cd8b1b44b1906455 /fs/nfs/internal.h | |
parent | NFS: Add basic functionality for tracking folios in struct nfs_page (diff) | |
download | linux-eb9f2a5a5e85fd24949480d1d02c2a497f26e154.tar.xz linux-eb9f2a5a5e85fd24949480d1d02c2a497f26e154.zip |
NFS: Support folios in nfs_generic_pgio()
Add support for multi-page folios in the generic NFS i/o engine.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index ae7d4a8c728c..6197b165c8c8 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -807,11 +807,10 @@ unsigned char nfs_umode_to_dtype(umode_t mode) * Determine the number of pages in an array of length 'len' and * with a base offset of 'base' */ -static inline -unsigned int nfs_page_array_len(unsigned int base, size_t len) +static inline unsigned int nfs_page_array_len(unsigned int base, size_t len) { - return ((unsigned long)len + (unsigned long)base + - PAGE_SIZE - 1) >> PAGE_SHIFT; + return ((unsigned long)len + (unsigned long)base + PAGE_SIZE - 1) >> + PAGE_SHIFT; } /* |