ksm: fix pagesize

ksm test fails on ppc64 systems because of the pagesize on ppc64 is
larger than 4KB, so page_sharing will be a different value. This patch
replace the hard-coded number 256 to a variable: 1MB/pagesize.

Signed-off-by: Caspar Zhang <czhang@redhat.com>
1 file changed