summaryrefslogtreecommitdiff
path: root/fs/overlayfs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-05-31 12:06:11 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2018-05-31 12:06:11 +0300
commitdd8ac699ed6e1ef296da8cb9d12d36428b901871 (patch)
tree3d80c3b90e61af3dd1da583fd9b8f318c3ca0722 /fs/overlayfs
parentf73cc77c3afffc9a90fad972fe34af52cdb72979 (diff)
downloadlinux-dd8ac699ed6e1ef296da8cb9d12d36428b901871.tar.xz
ovl: return EIO on internal error
EIO better represents an internal error than ENOENT. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs')
-rw-r--r--fs/overlayfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/dir.c b/fs/overlayfs/dir.c
index 1d59c466d199..e8c7df070fed 100644
--- a/fs/overlayfs/dir.c
+++ b/fs/overlayfs/dir.c
@@ -191,7 +191,7 @@ struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
* Not quite sure if non-instantiated dentry is legal or not.
* VFS doesn't seem to care so check and warn here.
*/
- err = -ENOENT;
+ err = -EIO;
}
out:
if (err) {