ksm: drain pagevecs to lru
authorHugh Dickins <hughd@google.com>
Thu, 13 Jan 2011 23:47:29 +0000 (15:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:49 +0000 (17:32 -0800)
commit2919bfd0758257c469abef8c26c3e516bbebb851
tree093244c121dcbb91423f119cea9abc50e11ad078
parent73ae31e5986a4c0ee84bfd13ccd9b57a98956f6f
ksm: drain pagevecs to lru

It was hard to explain the page counts which were causing new LTP tests
of KSM to fail: we need to drain the per-cpu pagevecs to LRU occasionally.

Signed-off-by: Hugh Dickins <hughd@google.com>
Reported-by: CAI Qian <caiqian@redhat.com>
Cc:Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/ksm.c