commit c62943ba3e52b47d9d4b42b846f07dc9d583a9f7
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Fri Nov 30 14:17:34 2007 -0500

    Unionfs ODF: prevent leaking /odf/* dentries
    
    Upon cache coherency, also dput the odf.dentry.
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index ada52f1..a8da175 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);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to