staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8e80aa294d
commit
2c3856dc11
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user