ovl: deal with overlay files in ovl_d_real()
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
46e5d0a390
commit
e8c985bace
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user