mirror of
https://github.com/hardkernel/linux.git
synced 2026-05-31 00:06:41 +09:00
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:
committed by
Greg Kroah-Hartman
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. */
|
||||
|
||||
Reference in New Issue
Block a user