]> err.no Git - linux-2.6/blobdiff - mm/page_alloc.c
[PATCH] unpaged: unifdefed PageCompound
[linux-2.6] / mm / page_alloc.c
index bd4de592dc238fd3939c16b276cc7e10f7d1e21d..23b84c4e1a57beaf3a3b2cd578318b3da592071c 100644 (file)
@@ -148,10 +148,6 @@ static void bad_page(const char *function, struct page *page)
        add_taint(TAINT_BAD_PAGE);
 }
 
-#ifndef CONFIG_HUGETLB_PAGE
-#define prep_compound_page(page, order) do { } while (0)
-#define destroy_compound_page(page, order) do { } while (0)
-#else
 /*
  * Higher-order pages are called "compound pages".  They are structured thusly:
  *
@@ -205,7 +201,6 @@ static void destroy_compound_page(struct page *page, unsigned long order)
                ClearPageCompound(p);
        }
 }
-#endif         /* CONFIG_HUGETLB_PAGE */
 
 /*
  * function for dealing with page's order in buddy system.