thp: fix interleaving for transparent hugepages
authorAndi Kleen <ak@linux.intel.com>
Fri, 25 Feb 2011 22:44:28 +0000 (14:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Feb 2011 23:07:37 +0000 (15:07 -0800)
commit8eac563c1c3a2047083022357ae63722b19e4e08
tree724280edfbf6bd8206b0cc0337ee242d2a2518e0
parent7137c6bd455234bcb7560fd829e6ee49cae5fed6
thp: fix interleaving for transparent hugepages

The THP code didn't pass the correct interleaving shift to the memory
policy code.  Fix this here by adjusting for the order.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Acked-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c