staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it.
authorOleg Drokin <green@linuxhacker.ru>
Thu, 25 Feb 2016 03:00:22 +0000 (22:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:05:50 +0000 (22:05 -0800)
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c

index bbe6ebf..ba65fc0 100644 (file)
@@ -3071,10 +3071,8 @@ int ll_inode_permission(struct inode *inode, int mask)
 {
        int rc = 0;
 
-#ifdef MAY_NOT_BLOCK
        if (mask & MAY_NOT_BLOCK)
                return -ECHILD;
-#endif
 
        /* as root inode are NOT getting validated in lookup operation,
        * need to do it before permission check. */