aboutsummaryrefslogtreecommitdiffstats
path: root/fs/generic_acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/generic_acl.c')
-rw-r--r--fs/generic_acl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/generic_acl.c b/fs/generic_acl.c
index 6bc9e3a5a693..628004282130 100644
--- a/fs/generic_acl.c
+++ b/fs/generic_acl.c
@@ -190,10 +190,14 @@ generic_acl_chmod(struct inode *inode)
190} 190}
191 191
192int 192int
193generic_check_acl(struct inode *inode, int mask) 193generic_check_acl(struct inode *inode, int mask, unsigned int flags)
194{ 194{
195 struct posix_acl *acl = get_cached_acl(inode, ACL_TYPE_ACCESS); 195 struct posix_acl *acl;
196
197 if (flags & IPERM_FLAG_RCU)
198 return -ECHILD;
196 199
200 acl = get_cached_acl(inode, ACL_TYPE_ACCESS);
197 if (acl) { 201 if (acl) {
198 int error = posix_acl_permission(inode, acl, mask); 202 int error = posix_acl_permission(inode, acl, mask);
199 posix_acl_release(acl); 203 posix_acl_release(acl);