diff options
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 7662c5131b47..4ceac9ddac93 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -91,6 +91,8 @@ struct nfs_open_context { | |||
91 | */ | 91 | */ |
92 | struct nfs_delegation; | 92 | struct nfs_delegation; |
93 | 93 | ||
94 | struct posix_acl; | ||
95 | |||
94 | /* | 96 | /* |
95 | * nfs fs inode data in memory | 97 | * nfs fs inode data in memory |
96 | */ | 98 | */ |
@@ -144,6 +146,10 @@ struct nfs_inode { | |||
144 | atomic_t data_updates; | 146 | atomic_t data_updates; |
145 | 147 | ||
146 | struct nfs_access_entry cache_access; | 148 | struct nfs_access_entry cache_access; |
149 | #ifdef CONFIG_NFS_V3_ACL | ||
150 | struct posix_acl *acl_access; | ||
151 | struct posix_acl *acl_default; | ||
152 | #endif | ||
147 | 153 | ||
148 | /* | 154 | /* |
149 | * This is the cookie verifier used for NFSv3 readdir | 155 | * This is the cookie verifier used for NFSv3 readdir |
@@ -480,6 +486,7 @@ extern int nfs3_proc_setacl(struct inode *inode, int type, | |||
480 | struct posix_acl *acl); | 486 | struct posix_acl *acl); |
481 | extern int nfs3_proc_set_default_acl(struct inode *dir, struct inode *inode, | 487 | extern int nfs3_proc_set_default_acl(struct inode *dir, struct inode *inode, |
482 | mode_t mode); | 488 | mode_t mode); |
489 | extern void nfs3_forget_cached_acls(struct inode *inode); | ||
483 | #else | 490 | #else |
484 | static inline int nfs3_proc_set_default_acl(struct inode *dir, | 491 | static inline int nfs3_proc_set_default_acl(struct inode *dir, |
485 | struct inode *inode, | 492 | struct inode *inode, |
@@ -487,6 +494,10 @@ static inline int nfs3_proc_set_default_acl(struct inode *dir, | |||
487 | { | 494 | { |
488 | return 0; | 495 | return 0; |
489 | } | 496 | } |
497 | |||
498 | static inline void nfs3_forget_cached_acls(struct inode *inode) | ||
499 | { | ||
500 | } | ||
490 | #endif /* CONFIG_NFS_V3_ACL */ | 501 | #endif /* CONFIG_NFS_V3_ACL */ |
491 | 502 | ||
492 | /* | 503 | /* |