From: Erez Zadok Date: Fri, 30 Nov 2007 19:17:34 +0000 (-0500) Subject: Unionfs ODF: prevent leaking /odf/* dentries X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=c62943ba3e52b47d9d4b42b846f07dc9d583a9f7;p=unionfs-odf.git Unionfs ODF: prevent leaking /odf/* dentries Upon cache coherency, also dput the odf.dentry. Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index ada52f1244..a8da175225 100644 --- a/fs/unionfs/dentry.c +++ b/fs/unionfs/dentry.c @@ -134,6 +134,11 @@ static bool __unionfs_d_revalidate_one(struct dentry *dentry, if (locked) mutex_unlock(&dentry->d_inode->i_mutex); } + /* on reval, als purge the odf dentry, if any */ + if (UNIONFS_D(dentry)->odf.dentry) { + dput(UNIONFS_D(dentry)->odf.dentry); + UNIONFS_D(dentry)->odf.dentry = NULL; + } result = unionfs_lookup_backend(dentry, &lowernd, interpose_flag);