[Ocfs2-commits] mfasheh commits r2622 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Sep 27 19:52:53 CDT 2005


Author: mfasheh
Signed-off-by: zab
Date: 2005-09-27 19:52:52 -0500 (Tue, 27 Sep 2005)
New Revision: 2622

Modified:
   trunk/fs/ocfs2/dlmglue.c
Log:
* We were shifting too far when packing and unpacking tv_sec for lvbs. This
  fixes bugzilla 566

Signed-off-by: zab  



Modified: trunk/fs/ocfs2/dlmglue.c
===================================================================
--- trunk/fs/ocfs2/dlmglue.c	2005-09-28 00:36:33 UTC (rev 2621)
+++ trunk/fs/ocfs2/dlmglue.c	2005-09-28 00:52:52 UTC (rev 2622)
@@ -1248,8 +1248,9 @@
 	mlog_exit_void();
 }
 
-#define OCFS2_SEC_SHIFT  34
-#define OCFS2_NSEC_MASK  ((1ULL << (64 - OCFS2_SEC_SHIFT)) - 1)
+#define OCFS2_SEC_BITS   34
+#define OCFS2_SEC_SHIFT  (64 - 34)
+#define OCFS2_NSEC_MASK  ((1ULL << OCFS2_SEC_SHIFT) - 1)
 
 /* LVB only has room for 64 bits of time here so we pack it for
  * now. */



More information about the Ocfs2-commits mailing list