On Mon, May 07, 2018 at 10:37:42AM +0200, Miklos Szeredi wrote: > Signed-off-by: Miklos Szeredi <mszeredi@xxxxxxxxxx> > --- > fs/overlayfs/super.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c > index e8551c97de51..ad6a5baf226b 100644 > --- a/fs/overlayfs/super.c > +++ b/fs/overlayfs/super.c > @@ -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; > + Hi Miklos, inode == d_inode(dentry) check is being done again in following code. We probably can get rid of it now. if (!d_is_reg(dentry)) { if (!inode || inode == d_inode(dentry)) return dentry; goto bug; } Vivek > if (flags & D_REAL_UPPER) > return ovl_dentry_upper(dentry); > > -- > 2.14.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html