Commit 904e4bd5 authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds

[PATCH] compound pages optimisation

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 93f6c155
...@@ -291,7 +291,11 @@ extern unsigned long __read_page_state(unsigned offset); ...@@ -291,7 +291,11 @@ extern unsigned long __read_page_state(unsigned offset);
#define ClearPageReclaim(page) clear_bit(PG_reclaim, &(page)->flags) #define ClearPageReclaim(page) clear_bit(PG_reclaim, &(page)->flags)
#define TestClearPageReclaim(page) test_and_clear_bit(PG_reclaim, &(page)->flags) #define TestClearPageReclaim(page) test_and_clear_bit(PG_reclaim, &(page)->flags)
#ifdef CONFIG_HUGETLB_PAGE
#define PageCompound(page) test_bit(PG_compound, &(page)->flags) #define PageCompound(page) test_bit(PG_compound, &(page)->flags)
#else
#define PageCompound(page) 0
#endif
#define SetPageCompound(page) set_bit(PG_compound, &(page)->flags) #define SetPageCompound(page) set_bit(PG_compound, &(page)->flags)
#define ClearPageCompound(page) clear_bit(PG_compound, &(page)->flags) #define ClearPageCompound(page) clear_bit(PG_compound, &(page)->flags)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment