Lines Matching refs:max_page_sharing
30 unsigned long max_page_sharing; member
99 unsigned long max_page_sharing, pages_sharing, pages_shared; in ksm_print_sysfs() local
106 ksm_read_sysfs(KSM_FP("max_page_sharing"), &max_page_sharing) || in ksm_print_sysfs()
117 printf("max_page_sharing : %lu\n", max_page_sharing); in ksm_print_sysfs()
280 unsigned long max_page_sharing, pages_sharing, pages_shared; in assert_ksm_pages_count() local
284 ksm_read_sysfs(KSM_FP("max_page_sharing"), &max_page_sharing)) in assert_ksm_pages_count()
302 if (dupl_page_count % max_page_sharing == 1 || dupl_page_count % max_page_sharing == 0) { in assert_ksm_pages_count()
303 if (pages_shared == dupl_page_count / max_page_sharing && in assert_ksm_pages_count()
304 pages_sharing == pages_shared * (max_page_sharing - 1)) in assert_ksm_pages_count()
307 if (pages_shared == (dupl_page_count / max_page_sharing + 1) && in assert_ksm_pages_count()
317 if (ksm_read_sysfs(KSM_FP("max_page_sharing"), &ksm_sysfs->max_page_sharing) || in ksm_save_def()
333 if (ksm_write_sysfs(KSM_FP("max_page_sharing"), ksm_sysfs->max_page_sharing) || in ksm_restore()