Skip to content

Commit

Permalink
ovl: deal with overlay files in ovl_d_real()
Browse files Browse the repository at this point in the history
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Miklos Szeredi committed Jul 18, 2018
1 parent 46e5d0a commit e8c985b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/overlayfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ static struct dentry *ovl_d_real(struct dentry *dentry,
struct dentry *real;
int err;

/* It's an overlay file */
if (inode && d_inode(dentry) == inode)
return dentry;

if (flags & D_REAL_UPPER)
return ovl_dentry_upper(dentry);

Expand Down

0 comments on commit e8c985b

Please sign in to comment.