commit 86345f9d1c9ee78a0f2c62ba6037ddd6ad7a7127
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date:   Fri Nov 16 13:46:18 2007 -0500

    Unionfs: cache-coherency fixes
    
    Do not update mtime if there is no upper branch for the inode.  This
    prevents from calling unionfs_lower_inode_idx() with a negative index, which
    triggers a bug.
    
    Signed-off-by: Olivier Blin <[EMAIL PROTECTED]>
    Acked-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h
index 6d0795d..3fc6733 100644
--- a/fs/unionfs/fanout.h
+++ b/fs/unionfs/fanout.h
@@ -301,7 +301,7 @@ static inline void unionfs_copy_attr_times(struct inode 
*upper)
        int bindex;
        struct inode *lower;
 
-       if (!upper)
+       if (!upper || ibstart(upper) < 0)
                return;
        for (bindex=ibstart(upper); bindex <= ibend(upper); bindex++) {
                lower = unionfs_lower_inode_idx(upper, bindex);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to