]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ksm: reorganize ksm_check_stable_tree
authorHugh Dickins <hughd@google.com>
Wed, 20 Feb 2013 02:14:50 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:53 +0000 (16:52 +1100)
commit7465bc9ec04715bd505ce37b624d3e15e3076037
tree5c9452b46e0158d0b1981960feba961a642c5952
parent0f0ed1669b7a2307dfd3ec4c1157b95742c604c6
ksm: reorganize ksm_check_stable_tree

Memory hotremove's ksm_check_stable_tree() is pitifully inefficient
(restarting whenever it finds a stale node to remove), but rearrange so
that at least it does not needlessly restart from nid 0 each time.  And
add a couple of comments: here is why we keep pfn instead of page.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Petr Holasek <pholasek@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Izik Eidus <izik.eidus@ravellosystems.com>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/ksm.c