GIT: unionfs2-2.6.27.y: Unionfs: don't bother validating dentry if it has no lower branches
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:17 EDT 2010
commit 1624bc1f4c18a9d98dd3ce8fe213c79db17addac
Author: Erez Zadok <ezk at cs.sunysb.edu>
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 <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c
index 68692d7..894bf7c 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;
More information about the unionfs-cvs
mailing list