]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ext2/acl.c
fs: provide rcu-walk aware permission i_ops
[karo-tx-linux.git] / fs / ext2 / acl.c
index 2bcc0431badac87d6a8e9cdb2b0adb737836ebf4..dd9bb3f0c8d7d15a89d806fcca1272d295edfbc0 100644 (file)
@@ -232,10 +232,14 @@ ext2_set_acl(struct inode *inode, int type, struct posix_acl *acl)
 }
 
 int
-ext2_check_acl(struct inode *inode, int mask)
+ext2_check_acl(struct inode *inode, int mask, unsigned int flags)
 {
-       struct posix_acl *acl = ext2_get_acl(inode, ACL_TYPE_ACCESS);
+       struct posix_acl *acl;
+
+       if (flags & IPERM_FLAG_RCU)
+               return -ECHILD;
 
+       acl = ext2_get_acl(inode, ACL_TYPE_ACCESS);
        if (IS_ERR(acl))
                return PTR_ERR(acl);
        if (acl) {