Miaohe Lin a08e1e11c9 ksm: remove redundant VM_BUG_ON_PAGE() on stable_tree_search()
Patch series "Cleanup and fixup for ksm".

This series contains cleanups to remove unnecessary VM_BUG_ON_PAGE and
dedicated macro KSM_FLAG_MASK.  Also this fixes potential missing
rmap_item for stable_node which would result in failed rmap_walk_ksm().
More details can be found in the respective changelogs.

This patch (of 4):

The same VM_BUG_ON_PAGE() check is already done in the callee.  Remove
these extra caller one to simplify code slightly.

Link: https://lkml.kernel.org/r/20210330140228.45635-1-linmiaohe@huawei.com
Link: https://lkml.kernel.org/r/20210330140228.45635-2-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-05-05 11:27:24 -07:00
..
2021-05-05 11:27:24 -07:00
2021-05-05 11:27:24 -07:00
2021-02-24 13:38:27 -08:00
2021-05-05 11:27:19 -07:00
2021-04-30 11:20:37 -07:00
2021-05-05 11:27:24 -07:00
2021-04-30 11:20:36 -07:00
2021-05-05 11:27:24 -07:00
2021-03-02 17:25:46 -07:00
2021-04-16 16:10:37 -07:00
2021-05-05 11:27:19 -07:00
2021-04-30 11:20:37 -07:00
2021-04-30 11:20:40 -07:00
2021-05-05 11:27:24 -07:00