aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 48997374eaf0..0ae5807480f4 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -154,10 +154,6 @@ struct nfs_inode {
154 struct rb_root access_cache; 154 struct rb_root access_cache;
155 struct list_head access_cache_entry_lru; 155 struct list_head access_cache_entry_lru;
156 struct list_head access_cache_inode_lru; 156 struct list_head access_cache_inode_lru;
157#ifdef CONFIG_NFS_V3_ACL
158 struct posix_acl *acl_access;
159 struct posix_acl *acl_default;
160#endif
161 157
162 /* 158 /*
163 * This is the cookie verifier used for NFSv3 readdir 159 * This is the cookie verifier used for NFSv3 readdir
@@ -215,6 +211,7 @@ struct nfs_inode {
215#define NFS_INO_ADVISE_RDPLUS (0) /* advise readdirplus */ 211#define NFS_INO_ADVISE_RDPLUS (0) /* advise readdirplus */
216#define NFS_INO_STALE (1) /* possible stale inode */ 212#define NFS_INO_STALE (1) /* possible stale inode */
217#define NFS_INO_ACL_LRU_SET (2) /* Inode is on the LRU list */ 213#define NFS_INO_ACL_LRU_SET (2) /* Inode is on the LRU list */
214#define NFS_INO_INVALIDATING (3) /* inode is being invalidated */
218#define NFS_INO_FLUSHING (4) /* inode is flushing out data */ 215#define NFS_INO_FLUSHING (4) /* inode is flushing out data */
219#define NFS_INO_FSCACHE (5) /* inode can be cached by FS-Cache */ 216#define NFS_INO_FSCACHE (5) /* inode can be cached by FS-Cache */
220#define NFS_INO_FSCACHE_LOCK (6) /* FS-Cache cookie management lock */ 217#define NFS_INO_FSCACHE_LOCK (6) /* FS-Cache cookie management lock */
@@ -564,23 +561,17 @@ extern int nfs_readpage_async(struct nfs_open_context *, struct inode *,
564 * linux/fs/nfs3proc.c 561 * linux/fs/nfs3proc.c
565 */ 562 */
566#ifdef CONFIG_NFS_V3_ACL 563#ifdef CONFIG_NFS_V3_ACL
567extern struct posix_acl *nfs3_proc_getacl(struct inode *inode, int type); 564extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type);
568extern int nfs3_proc_setacl(struct inode *inode, int type, 565extern int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type);
569 struct posix_acl *acl); 566extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
570extern int nfs3_proc_set_default_acl(struct inode *dir, struct inode *inode, 567 struct posix_acl *dfacl);
571 umode_t mode); 568extern const struct xattr_handler *nfs3_xattr_handlers[];
572extern void nfs3_forget_cached_acls(struct inode *inode);
573#else 569#else
574static inline int nfs3_proc_set_default_acl(struct inode *dir, 570static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
575 struct inode *inode, 571 struct posix_acl *dfacl)
576 umode_t mode)
577{ 572{
578 return 0; 573 return 0;
579} 574}
580
581static inline void nfs3_forget_cached_acls(struct inode *inode)
582{
583}
584#endif /* CONFIG_NFS_V3_ACL */ 575#endif /* CONFIG_NFS_V3_ACL */
585 576
586/* 577/*