]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ksm: unstable_tree_search_insert error checking cleanup
authorAndrea Arcangeli <aarcange@redhat.com>
Wed, 21 Oct 2015 22:03:16 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:16 +0000 (09:03 +1100)
commitb5effdc1e309fbc559808013db39dfc3cf06c950
tree4c146ecbaeb6beec015bb11aff2be78524ecbe71
parentb9f88ecf52bdcca8a3b4b0639ca54c0b7111d9ff
ksm: unstable_tree_search_insert error checking cleanup

get_mergeable_page() can only return NULL (in case of errors) or the
pinned mergeable page.  It can't return an error different than NULL.
This makes it more readable and less confusion in addition to optimizing
the check.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Petr Holasek <pholasek@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/ksm.c