GIT: unionfs2-2.6.27.y: Unionfs: debugging updates
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:24 EDT 2010
commit 182812826b264ed2d6577720cb4a60061ebbb276
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Mon Nov 12 20:35:58 2007 -0500
Unionfs: debugging updates
Don't perform dentry+inode checks unless both are valid.
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c
index 0066ccd..8464fbb 100644
--- a/fs/unionfs/debug.c
+++ b/fs/unionfs/debug.c
@@ -299,7 +299,7 @@ check_inode:
* be NULL. But, check that all three are NULL: lower dentry, mnt,
* and inode.
*/
- if (S_ISDIR(inode->i_mode))
+ if (dstart >= 0 && dend >= 0 && S_ISDIR(inode->i_mode))
for (bindex = dstart+1; bindex < dend; bindex++) {
lower_inode = unionfs_lower_inode_idx(inode, bindex);
lower_dentry = unionfs_lower_dentry_idx(dentry,
More information about the unionfs-cvs
mailing list