commit 48a13542a3c81f65533adc72d6e473ec52cc033e
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date:   Mon May 28 23:24:58 2007 -0400

    invariants: don't complain if no lower dentry of a deleted dentry
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c
index 821ef65..ab168cc 100644
--- a/fs/unionfs/debug.c
+++ b/fs/unionfs/debug.c
@@ -148,9 +148,10 @@ void __unionfs_check_dentry(const struct dentry *dentry,
        /*
         * Directories can have NULL lower inodes in b/t start/end, but NOT
         * if at the start/end range.  Ignore this rule, however, if this is
-        * a NULL dentry.
+        * a NULL dentry or a deleted dentry.
         */
-       if (inode && !(inode && S_ISDIR(inode->i_mode) &&
+       if (!d_deleted((struct dentry *) dentry) &&
+           inode && !(inode && S_ISDIR(inode->i_mode) &&
                       bindex > dstart && bindex < dend)) {
          PRINT_CALLER;
          printk(" CD2: dentry/lower=%p:%p(%p) bindex=%d dstart/end=%d:%d\n",
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to