GIT: unionfs2-2.6.27.y: Unionfs: cache-coherency fix for is_newer_lower

Erez Zadok ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:58 EDT 2010


commit 781c45f2d60f5779937fecaae781905d0690d7c9
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date:   Thu Sep 6 00:42:56 2007 -0400

    Unionfs: cache-coherency fix for is_newer_lower
    
    Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>

diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index 1891df9..e46a53e 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -184,7 +184,7 @@ out:
 
 /*
  * Determine if the lower inode objects have changed from below the unionfs
- * inode.  Return 1 if changed, 0 otherwise.
+ * inode.  Return true if changed, false otherwise.
  */
 bool is_newer_lower(const struct dentry *dentry)
 {
@@ -226,7 +226,7 @@ bool is_newer_lower(const struct dentry *dentry)
 			return true; /* ctime changed! */
 		}
 	}
-	return true;		/* default: lower is not newer */
+	return false;		/* default: lower is not newer */
 }
 
 /*


More information about the unionfs-cvs mailing list