ovl: deal with overlay files in ovl_d_real()

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Miklos Szeredi 2018-07-18 15:44:41 +02:00
parent 46e5d0a390
commit e8c985bace

View File

@ -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);