aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/fscache.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/fscache.h')
-rw-r--r--fs/nfs/fscache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfs/fscache.h b/fs/nfs/fscache.h
index ccfcdc58066e..1d864bedf154 100644
--- a/fs/nfs/fscache.h
+++ b/fs/nfs/fscache.h
@@ -23,13 +23,23 @@
23 * fscache-index.c 23 * fscache-index.c
24 */ 24 */
25extern struct fscache_netfs nfs_fscache_netfs; 25extern struct fscache_netfs nfs_fscache_netfs;
26extern const struct fscache_cookie_def nfs_fscache_server_index_def;
26 27
27extern int nfs_fscache_register(void); 28extern int nfs_fscache_register(void);
28extern void nfs_fscache_unregister(void); 29extern void nfs_fscache_unregister(void);
29 30
31/*
32 * fscache.c
33 */
34extern void nfs_fscache_get_client_cookie(struct nfs_client *);
35extern void nfs_fscache_release_client_cookie(struct nfs_client *);
36
30#else /* CONFIG_NFS_FSCACHE */ 37#else /* CONFIG_NFS_FSCACHE */
31static inline int nfs_fscache_register(void) { return 0; } 38static inline int nfs_fscache_register(void) { return 0; }
32static inline void nfs_fscache_unregister(void) {} 39static inline void nfs_fscache_unregister(void) {}
33 40
41static inline void nfs_fscache_get_client_cookie(struct nfs_client *clp) {}
42static inline void nfs_fscache_release_client_cookie(struct nfs_client *clp) {}
43
34#endif /* CONFIG_NFS_FSCACHE */ 44#endif /* CONFIG_NFS_FSCACHE */
35#endif /* _NFS_FSCACHE_H */ 45#endif /* _NFS_FSCACHE_H */