Skip to content

Commit

Permalink
ovl: fix error value printed in ovl_lookup_index()
Browse files Browse the repository at this point in the history
Fixes: 359f392 ("ovl: lookup index entry for copy up origin")
Cc: <[email protected]> # v4.13
Signed-off-by: Amir Goldstein <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
  • Loading branch information
amir73il authored and Miklos Szeredi committed Oct 5, 2017
1 parent 954c736 commit e0082a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/overlayfs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ static struct dentry *ovl_lookup_index(struct dentry *dentry,

index = lookup_one_len_unlocked(name.name, ofs->indexdir, name.len);
if (IS_ERR(index)) {
err = PTR_ERR(index);
pr_warn_ratelimited("overlayfs: failed inode index lookup (ino=%lu, key=%*s, err=%i);\n"
"overlayfs: mount with '-o index=off' to disable inodes index.\n",
d_inode(origin)->i_ino, name.len, name.name,
Expand Down

0 comments on commit e0082a0

Please sign in to comment.