Commit e8c985ba authored by Miklos Szeredi's avatar Miklos Szeredi

ovl: deal with overlay files in ovl_d_real()

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 46e5d0a3
...@@ -97,6 +97,10 @@ static struct dentry *ovl_d_real(struct dentry *dentry, ...@@ -97,6 +97,10 @@ static struct dentry *ovl_d_real(struct dentry *dentry,
struct dentry *real; struct dentry *real;
int err; int err;
/* It's an overlay file */
if (inode && d_inode(dentry) == inode)
return dentry;
if (flags & D_REAL_UPPER) if (flags & D_REAL_UPPER)
return ovl_dentry_upper(dentry); return ovl_dentry_upper(dentry);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment