thp: scale nr_rotated to balance memory pressure
commit9992af102974f3f8a02a1f2729c3461881539e26
authorRik van Riel <riel@redhat.com>
Thu, 13 Jan 2011 23:47:13 +0000 (13 15:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:46 +0000 (13 17:32 -0800)
tree40958e1a8bd7efc7c9a4d28e2b77d86bb8688734
parent2c888cfbc1b45508a44763d85ba2e8ac43faff5f
thp: scale nr_rotated to balance memory pressure

Make sure we scale up nr_rotated when we encounter a referenced
transparent huge page.  This ensures pageout scanning balance is not
distorted when there are huge pages on the LRU.

Signed-off-by: Rik van Riel <riel@redhat.com>
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>
mm/vmscan.c