commit 037133956ad86169d371cbf8e071768454e7f5ec
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Fri Feb 15 21:35:43 2008 -0500

    Unionfs: improve debugging in copy_attr_times
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c
index 75e0267..d284aa5 100644
--- a/fs/unionfs/subr.c
+++ b/fs/unionfs/subr.c
@@ -237,8 +237,14 @@ void unionfs_copy_attr_times(struct inode *upper)
        int bindex;
        struct inode *lower;
 
-       if (!upper || ibstart(upper) < 0)
+       if (!upper)
                return;
+       if (ibstart(upper) < 0) {
+#ifdef CONFIG_UNION_FS_DEBUG
+               WARN_ON(ibstart(upper) < 0);
+#endif /* CONFIG_UNION_FS_DEBUG */
+               return;
+       }
        for (bindex = ibstart(upper); bindex <= ibend(upper); bindex++) {
                lower = unionfs_lower_inode_idx(upper, bindex);
                if (!lower)
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to