[Ocfs2-commits] manish commits r1140 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Jun 17 22:01:59 CDT 2004


Author: manish
Date: 2004-06-17 21:01:57 -0500 (Thu, 17 Jun 2004)
New Revision: 1140

Modified:
   trunk/src/ocfs_compat.h
Log:
Clean up build framework
memdebug gone, USE_JOURNAL_CREATE_REPLACEMENT grokked from kernel versions
in ocfs_compat.h.
2.4 stuff isolated further


Modified: trunk/src/ocfs_compat.h
===================================================================
--- trunk/src/ocfs_compat.h	2004-06-18 01:59:13 UTC (rev 1139)
+++ trunk/src/ocfs_compat.h	2004-06-18 02:01:57 UTC (rev 1140)
@@ -99,6 +99,16 @@
 	return (u64)((MAJOR(dev) << 8) | MINOR(dev));
 }
 
+#ifdef RED_HAT_LINUX_KERNEL
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,21)
+#define USE_JOURNAL_CREATE_REPLACEMENT 1
+#endif
+#else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,22)
+#define USE_JOURNAL_CREATE_REPLACEMENT 1
+#endif
+#endif
+
 #else /* LINUX_VERSION_CODE < 2.6 */
 
 #define OCFS_GENERIC_SB_MEMBER(sb)  ((sb)->s_fs_info)



More information about the Ocfs2-commits mailing list