vfs: move ACL cache lookup into generic code
[pandora-kernel.git] / fs / gfs2 / acl.c
index 8ef1079..48171f4 100644 (file)
@@ -80,12 +80,6 @@ int gfs2_check_acl(struct inode *inode, int mask)
        struct posix_acl *acl;
        int error;
 
-       if (mask & MAY_NOT_BLOCK) {
-               if (!negative_cached_acl(inode, ACL_TYPE_ACCESS))
-                       return -ECHILD;
-               return -EAGAIN;
-       }
-
        acl = gfs2_acl_get(GFS2_I(inode), ACL_TYPE_ACCESS);
        if (IS_ERR(acl))
                return PTR_ERR(acl);