12 #ifndef _NFS_FSCACHE_H
13 #define _NFS_FSCACHE_H
15 #include <linux/nfs_fs.h>
20 #ifdef CONFIG_NFS_FSCACHE
25 struct nfs_fscache_key {
42 unsigned int acregmin;
43 unsigned int acregmax;
44 unsigned int acdirmin;
45 unsigned int acdirmax;
49 rpc_authflavor_t au_flavor;
98 static inline void nfs_fscache_wait_on_page_write(
struct nfs_inode *nfsi,
102 fscache_wait_on_page_write(nfsi->fscache, page);
109 static inline void nfs_fscache_invalidate_page(
struct page *page,
123 if (NFS_I(inode)->fscache)
137 if (NFS_I(inode)->fscache)
147 static inline void nfs_readpage_to_fscache(
struct inode *inode,
158 static inline const char *nfs_server_fscache_state(
struct nfs_server *server)
179 struct file *filp) {}
186 static inline void nfs_fscache_invalidate_page(
struct page *page,
187 struct inode *inode) {}
188 static inline void nfs_fscache_wait_on_page_write(
struct nfs_inode *nfsi,
189 struct page *page) {}
205 static inline void nfs_readpage_to_fscache(
struct inode *inode,
206 struct page *page,
int sync) {}
208 static inline const char *nfs_server_fscache_state(
struct nfs_server *server)