]> Pileus Git - ~andy/linux/blobdiff - fs/jfs/acl.c
fs: provide rcu-walk aware permission i_ops
[~andy/linux] / fs / jfs / acl.c
index 1057a4998e4e793f7a5706dbd4026916c7f3e9b6..e5de9422fa325538e5aa3f1ca9e830e9f2b5652e 100644 (file)
@@ -114,10 +114,14 @@ out:
        return rc;
 }
 
-int jfs_check_acl(struct inode *inode, int mask)
+int jfs_check_acl(struct inode *inode, int mask, unsigned int flags)
 {
-       struct posix_acl *acl = jfs_get_acl(inode, ACL_TYPE_ACCESS);
+       struct posix_acl *acl;
+
+       if (flags & IPERM_FLAG_RCU)
+               return -ECHILD;
 
+       acl = jfs_get_acl(inode, ACL_TYPE_ACCESS);
        if (IS_ERR(acl))
                return PTR_ERR(acl);
        if (acl) {