-
- Downloads
thp: remove PG_buddy
PG_buddy can be converted to _mapcount == -2. So the PG_compound_lock can be added to page->flags without overflowing (because of the sparse section bits increasing) with CONFIG_X86_PAE=y and CONFIG_X86_PAT=y. This also has to move the memory hotplug code from _mapcount to lru.next to avoid any risk of clashes. We can't use lru.next for PG_buddy removal, but memory hotplug can use lru.next even more easily than the mapcount instead. Signed-off-by:Andrea Arcangeli <aarcange@redhat.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/proc/page.c 8 additions, 6 deletionsfs/proc/page.c
- include/linux/memory_hotplug.h 9 additions, 5 deletionsinclude/linux/memory_hotplug.h
- include/linux/mm.h 21 additions, 0 deletionsinclude/linux/mm.h
- include/linux/page-flags.h 1 addition, 6 deletionsinclude/linux/page-flags.h
- mm/memory_hotplug.c 8 additions, 6 deletionsmm/memory_hotplug.c
- mm/page_alloc.c 3 additions, 4 deletionsmm/page_alloc.c
- mm/sparse.c 2 additions, 2 deletionsmm/sparse.c
Loading
Please register or sign in to comment