aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-05-31 05:06:11 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2018-05-31 05:06:11 -0400
commitdd8ac699ed6e1ef296da8cb9d12d36428b901871 (patch)
tree3d80c3b90e61af3dd1da583fd9b8f318c3ca0722
parentf73cc77c3afffc9a90fad972fe34af52cdb72979 (diff)
ovl: return EIO on internal error
EIO better represents an internal error than ENOENT. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-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,
191 * Not quite sure if non-instantiated dentry is legal or not. 191 * Not quite sure if non-instantiated dentry is legal or not.
192 * VFS doesn't seem to care so check and warn here. 192 * VFS doesn't seem to care so check and warn here.
193 */ 193 */
194 err = -ENOENT; 194 err = -EIO;
195 } 195 }
196out: 196out:
197 if (err) { 197 if (err) {