commit 76f5c973ba61270aa63824ade2acdfbe8101bd8c
Author: Rachita Kothiyal <[EMAIL PROTECTED]>
Date:   Fri Feb 29 12:03:39 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 f68624d..167eac9 100644
--- a/fs/unionfs/subr.c
+++ b/fs/unionfs/subr.c
@@ -88,8 +88,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