提交 e8c985ba 编写于 作者: M Miklos Szeredi

ovl: deal with overlay files in ovl_d_real()

Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册