summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-07-29 12:05:23 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2016-07-29 12:05:23 +0200
commita999d7e161a085e30181d0a88f049bd92112e172 (patch)
tree521d21dbd51aba3a8af4f93c4705f5e1a22ed17c /fs/overlayfs/inode.c
parentovl: update atime on upper (diff)
downloadlinux-a999d7e161a085e30181d0a88f049bd92112e172.tar.xz
linux-a999d7e161a085e30181d0a88f049bd92112e172.zip
ovl: permission: return ECHILD instead of ENOENT
The error is due to RCU and is temporary. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to '')
-rw-r--r--fs/overlayfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 041db9c6621c..0598c169ce41 100644
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@ -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;
}
/*