GIT: unionfs2-2.6.27.y: Unionfs: cache-coherency fixes
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:01 EDT 2010
commit ee8305b364e6f3e32bcfb52d60ee0188fa380844
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date: Wed Sep 19 23:52:18 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 <blino at mandriva.com>
Acked-by: Erez Zadok <ezk at cs.sunysb.edu>
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);
More information about the unionfs-cvs
mailing list