Whamcloud - gitweb
LU-2675 lustre: remove linux/lustre_handles.h
[fs/lustre-release.git] / lustre / include / lustre_debug.h
index a1a879c..ad833e2 100644 (file)
 #include <lustre_net.h>
 #include <obd.h>
 
-#if defined(__linux__)
-#include <linux/lustre_debug.h>
-#else
-#error Unsupported operating system.
-#endif
+#define LL_CDEBUG_PAGE(mask, page, fmt, arg...)                                \
+       CDEBUG(mask, "page %p map %p index %lu flags %lx count %u priv %0lx: " \
+              fmt, page, page->mapping, page->index, (long)page->flags, \
+              page_count(page), page_private(page), ## arg)
 
 #define ASSERT_MAX_SIZE_MB 60000ULL
 #define ASSERT_PAGE_INDEX(index, OP)                                    \