commit 4f10533b8222f88146d4a1579863002d6b3e2529
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date:   Wed Sep 19 23:55:27 2007 -0400

    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 afeb9f6..51aa0de 100644
--- a/fs/unionfs/fanout.h
+++ b/fs/unionfs/fanout.h
@@ -308,7 +308,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