X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_debug.h;h=770b3c7ec06ec301dce2cad3c2c2f2fcce80585f;hp=0bd6e57e8877f58513245d7e7383bfc3f07e765d;hb=f625f670afbe954030ff81f0f8522137d6cdd335;hpb=c2c14f31da5f69770d3a46627c81335f5b8d7821 diff --git a/lustre/include/lustre_debug.h b/lustre/include/lustre_debug.h index 0bd6e57..770b3c7 100644 --- a/lustre/include/lustre_debug.h +++ b/lustre/include/lustre_debug.h @@ -27,7 +27,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2011, Intel Corporation. + * Copyright (c) 2011, 2014, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -45,13 +45,10 @@ #include #include -#if defined(__linux__) -#include -#elif defined(__APPLE__) -#include -#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) \