Skip to content

Commit

Permalink
ovl: permission: return ECHILD instead of ENOENT
Browse files Browse the repository at this point in the history
The error is due to RCU and is temporary.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Miklos Szeredi committed Jul 29, 2016
1 parent d719e8f commit a999d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/overlayfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int ovl_permission(struct inode *inode, int mask)
realinode = d_inode_rcu(realdentry);
if (!realinode) {
WARN_ON(!(mask & MAY_NOT_BLOCK));
return -ENOENT;
return -ECHILD;
}

/*
Expand Down

0 comments on commit a999d7e

Please sign in to comment.