diff options
author | David Howells <dhowells@redhat.com> | 2009-04-03 11:42:43 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2009-04-03 11:42:43 -0400 |
commit | ef79c097bbe9724e13937271b3457df560e00370 (patch) | |
tree | a8671781cc0c9deb85fa76a8b4211c5e693b4343 /fs/nfs/fscache.h | |
parent | 10329a5d48f5abc14a37d30b706e330f8598297a (diff) |
NFS: Use local disk inode cache
Bind data storage objects in the local cache to NFS inodes.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Tested-by: Daire Byrne <Daire.Byrne@framestore.com>
Diffstat (limited to 'fs/nfs/fscache.h')
-rw-r--r-- | fs/nfs/fscache.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/nfs/fscache.h b/fs/nfs/fscache.h index d21b5906ccf4..8b4299a0ad61 100644 --- a/fs/nfs/fscache.h +++ b/fs/nfs/fscache.h | |||
@@ -77,6 +77,12 @@ extern void nfs_fscache_get_super_cookie(struct super_block *, | |||
77 | struct nfs_parsed_mount_data *); | 77 | struct nfs_parsed_mount_data *); |
78 | extern void nfs_fscache_release_super_cookie(struct super_block *); | 78 | extern void nfs_fscache_release_super_cookie(struct super_block *); |
79 | 79 | ||
80 | extern void nfs_fscache_init_inode_cookie(struct inode *); | ||
81 | extern void nfs_fscache_release_inode_cookie(struct inode *); | ||
82 | extern void nfs_fscache_zap_inode_cookie(struct inode *); | ||
83 | extern void nfs_fscache_set_inode_cookie(struct inode *, struct file *); | ||
84 | extern void nfs_fscache_reset_inode_cookie(struct inode *); | ||
85 | |||
80 | #else /* CONFIG_NFS_FSCACHE */ | 86 | #else /* CONFIG_NFS_FSCACHE */ |
81 | static inline int nfs_fscache_register(void) { return 0; } | 87 | static inline int nfs_fscache_register(void) { return 0; } |
82 | static inline void nfs_fscache_unregister(void) {} | 88 | static inline void nfs_fscache_unregister(void) {} |
@@ -91,5 +97,12 @@ static inline void nfs_fscache_get_super_cookie( | |||
91 | } | 97 | } |
92 | static inline void nfs_fscache_release_super_cookie(struct super_block *sb) {} | 98 | static inline void nfs_fscache_release_super_cookie(struct super_block *sb) {} |
93 | 99 | ||
100 | static inline void nfs_fscache_init_inode_cookie(struct inode *inode) {} | ||
101 | static inline void nfs_fscache_release_inode_cookie(struct inode *inode) {} | ||
102 | static inline void nfs_fscache_zap_inode_cookie(struct inode *inode) {} | ||
103 | static inline void nfs_fscache_set_inode_cookie(struct inode *inode, | ||
104 | struct file *filp) {} | ||
105 | static inline void nfs_fscache_reset_inode_cookie(struct inode *inode) {} | ||
106 | |||
94 | #endif /* CONFIG_NFS_FSCACHE */ | 107 | #endif /* CONFIG_NFS_FSCACHE */ |
95 | #endif /* _NFS_FSCACHE_H */ | 108 | #endif /* _NFS_FSCACHE_H */ |