->permission() sanitizing: pass MAY_NOT_BLOCK to ->check_acl()
[pandora-kernel.git] / fs / gfs2 / acl.c
index cbc0715..4d97352 100644 (file)
@@ -80,7 +80,7 @@ int gfs2_check_acl(struct inode *inode, int mask, unsigned int flags)
        struct posix_acl *acl;
        int error;
 
-       if (flags & IPERM_FLAG_RCU) {
+       if (mask & MAY_NOT_BLOCK) {
                if (!negative_cached_acl(inode, ACL_TYPE_ACCESS))
                        return -ECHILD;
                return -EAGAIN;