]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: Fold page->_last_nid into page->flags where possible
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 7 Feb 2013 01:26:49 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:40 +0000 (16:46 +1100)
commit888a41d855053768360a3664e2df37fe5bd4f8c5
tree974ecafd8a6d840e51db0899b2be1beca9b0ddc1
parent73dbbbe7f2168b3bc70a775a0296bce426349662
mm: Fold page->_last_nid into page->flags where possible

page->_last_nid fits into page->flags on 64-bit.  The unlikely 32-bit NUMA
configuration with NUMA Balancing will still need an extra page field.  As
Peter notes "Completely dropping 32bit support for CONFIG_NUMA_BALANCING
would simplify things, but it would also remove the warning if we grow
enough 64bit only page-flags to push the last-cpu out."

[mgorman@suse.de: minor modifications]
Signed-off-by: Mel Gorman <mgorman@suse.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Simon Jeons <simon.jeons@gmail.com>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
include/linux/mm_types.h
include/linux/page-flags-layout.h
mm/memory.c