summaryrefslogtreecommitdiffstats
path: root/fs
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
parentd719e8f268fa4f9944b24b60814da9017dfb7787 (diff)
downloadblackbird-obmc-linux-a999d7e161a085e30181d0a88f049bd92112e172.tar.gz
blackbird-obmc-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 'fs')
-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;
}
/*
OpenPOWER on IntegriCloud