commit bedd7e837f6e7d56d095d22e5fa9d2f7fe152d9f
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Wed Oct 17 17:35:02 2007 -0400

    Unionfs: don't bother validating dentry if it has no lower branches
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c
index 9117394..2e0525f 100644
--- a/fs/unionfs/debug.c
+++ b/fs/unionfs/debug.c
@@ -132,6 +132,9 @@ void __unionfs_check_dentry(const struct dentry *dentry,
        inode = dentry->d_inode;
        dstart = dbstart(dentry);
        dend = dbend(dentry);
+       /* don't check dentry/mnt if no lower branches */
+       if (dstart < 0 && dend < 0)
+               goto check_inode;
        BUG_ON(dstart > dend);
 
        if (unlikely((dstart == -1 && dend != -1) ||
@@ -212,6 +215,7 @@ void __unionfs_check_dentry(const struct dentry *dentry,
                }
        }
 
+check_inode:
        /* for inodes now */
        if (!inode)
                return;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to