mm: optimize Kernel Samepage Merging(KSM)