]> 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>
Wed, 20 Feb 2013 02:14:38 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:45 +0000 (16:52 +1100)
commitc714c7a96ac6f73713bf3490734cd00ce6a75fdf
treee18fe5e62c189aa242fa03b2c6550f14854ee111
parentb38f9039efb0745705e7df96868e94b2b66b5759
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