mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
[PATCH] unpaged: unifdefed PageCompound
It looks like snd_xxx is not the only nopage to be using PageReserved as a way of holding a high-order page together: which no longer works, but is masked by our failure to free from VM_RESERVED areas. We cannot fix that bug without first substituting another way to hold the high-order page together, while farming out the 0-order pages from within it. That's just what PageCompound is designed for, but it's been kept under CONFIG_HUGETLB_PAGE. Remove the #ifdefs: which saves some space (out- of-line put_page), doesn't slow down what most needs to be fast (already using hugetlb), and unifies the way we handle high-order pages. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1cdca61bf8
commit
664beed019
4 changed files with 0 additions and 31 deletions
|
@ -287,11 +287,7 @@ extern void __mod_page_state(unsigned long offset, unsigned long delta);
|
|||
#define ClearPageReclaim(page) 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)
|
||||
#else
|
||||
#define PageCompound(page) 0
|
||||
#endif
|
||||
#define SetPageCompound(page) set_bit(PG_compound, &(page)->flags)
|
||||
#define ClearPageCompound(page) clear_bit(PG_compound, &(page)->flags)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue