summaryrefslogtreecommitdiffstats
path: root/crypto/sha1_generic.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh.dickins@tiscali.co.uk>2009-12-15 02:59:17 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 17:53:18 +0100
commit31e855ea7173bdb0520f9684580423a9560f66e0 (patch)
tree20ff327e2a58929696946971a8201da559785338 /crypto/sha1_generic.c
parentksm: three remove_rmap_item_from_tree cleanups (diff)
downloadlinux-31e855ea7173bdb0520f9684580423a9560f66e0.tar.xz
linux-31e855ea7173bdb0520f9684580423a9560f66e0.zip
ksm: remove redundancies when merging page
There is no need for replace_page() to calculate a write-protected prot vm_page_prot must already be write-protected for an anonymous page (see mm/memory.c do_anonymous_page() for similar reliance on vm_page_prot). There is no need for try_to_merge_one_page() to get_page and put_page on newpage and oldpage: in every case we already hold a reference to each of them. But some instinct makes me move try_to_merge_one_page()'s unlock_page of oldpage down after replace_page(): that doesn't increase contention on the ksm page, and makes thinking about the transition easier. 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>
Diffstat (limited to 'crypto/sha1_generic.c')
0 files changed, 0 insertions, 0 deletions