mm: optimize Kernel Samepage Merging(KSM)

Signed-off-by: poondog <markj338@gmail.com>