diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2018-05-31 12:06:11 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-05-31 12:06:11 +0300 |
commit | dd8ac699ed6e1ef296da8cb9d12d36428b901871 (patch) | |
tree | 3d80c3b90e61af3dd1da583fd9b8f318c3ca0722 /fs/overlayfs | |
parent | f73cc77c3afffc9a90fad972fe34af52cdb72979 (diff) | |
download | linux-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.c | 2 |
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) { |