Files
linux-st/include/linux
Hugh Dickins 08beca44df ksm: stable_node point to page and back
Add a pointer to the ksm page into struct stable_node, holding a reference
to the page while the node exists.  Put a pointer to the stable_node into
the ksm page's ->mapping.

Then we don't need get_ksm_page() while traversing the stable tree: the
page to compare against is sure to be present and correct, even if it's no
longer visible through any of its existing rmap_items.

And we can handle the forked ksm page case more efficiently: no need to
memcmp our way through the tree to find its match.

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: Izik Eidus <ieidus@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>
2009-12-15 08:53:19 -08:00
..
2009-12-14 00:26:26 +01:00
2009-12-06 21:10:56 +01:00
2009-12-10 15:02:53 +01:00
2009-12-10 15:02:50 +01:00
2009-12-14 21:17:29 +01:00
2009-12-11 15:18:03 -08:00
2009-12-15 08:53:19 -08:00
2009-12-09 17:14:38 +11:00
2009-12-15 08:53:17 -08:00
2009-12-09 12:12:44 +02:00
2009-12-15 08:53:17 -08:00
2009-12-15 08:53:17 -08:00
2009-12-15 08:53:16 -08:00
2009-12-11 06:44:29 -05:00