]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ksm: reorganize ksm_check_stable_tree
authorHugh Dickins <hughd@google.com>
Thu, 7 Feb 2013 01:27:01 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:47 +0000 (16:46 +1100)
commitb1e66b3ec2b94c9e474199d29e19cb4448c4a2db
tree3d808ae6ff90c527e5f9abe8452c879175815052
parent178ba2437327dc1f8cf05b09db78dc421cbcc810
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