[Ocfs2-commits]
manish commits r999 - branches/format-changes/src/inc
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Jun 3 16:59:13 CDT 2004
Author: manish
Date: 2004-06-03 15:59:11 -0500 (Thu, 03 Jun 2004)
New Revision: 999
Modified:
branches/format-changes/src/inc/ocfs_compat.h
Log:
unlock_page() exists in 2.4.18+
Modified: branches/format-changes/src/inc/ocfs_compat.h
===================================================================
--- branches/format-changes/src/inc/ocfs_compat.h 2004-06-03 20:53:45 UTC (rev 998)
+++ branches/format-changes/src/inc/ocfs_compat.h 2004-06-03 20:59:11 UTC (rev 999)
@@ -51,9 +51,12 @@
#define ocfs_get_seconds(t) (t)
#define wait_on_page_locked(p) wait_on_page(p)
-#define unlock_page(p) UnlockPage(p)
#define PageUptodate(p) Page_Uptodate(p)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,18)
+#define unlock_page(p) UnlockPage(p)
+#endif
+
static inline dev_t ocfs_decode_dev(u64 val)
{
u16 val16 = (u16)(val & 0xFFFFULL);
More information about the Ocfs2-commits
mailing list