#ifdef CONFIG_TRANSPARENT_HUGEPAGE
... /* * PageTransCompound returns true for both transparent huge pages * and hugetlbfs pages, so it should only be called when it's known * that hugetlbfs pages aren't involved. */ static inline int PageTransCompound(struct page *page) { return PageCompound(page); }
... #else ... static inline int PageTransCompound(struct page *page) { return 0; } ... #endif