[Ocfs2-commits] mfasheh commits r2624 - branches/ocfs2-1.0/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Sep 27 20:02:11 CDT 2005


Author: mfasheh
Signed-off-by: zab
Date: 2005-09-27 20:02:10 -0500 (Tue, 27 Sep 2005)
New Revision: 2624

Modified:
   branches/ocfs2-1.0/fs/ocfs2/dlmglue.c
Log:
* Backport svn r2622 from trunk:
        -We were shifting too far when packing and unpacking tv_sec for
         lvbs.

Signed-off-by: zab



Modified: branches/ocfs2-1.0/fs/ocfs2/dlmglue.c
===================================================================
--- branches/ocfs2-1.0/fs/ocfs2/dlmglue.c	2005-09-28 00:59:54 UTC (rev 2623)
+++ branches/ocfs2-1.0/fs/ocfs2/dlmglue.c	2005-09-28 01:02:10 UTC (rev 2624)
@@ -1235,8 +1235,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