Lines Matching refs:kpfn
169 unsigned long kpfn; member
585 static inline int get_kpfn_nid(unsigned long kpfn) in get_kpfn_nid() argument
587 return ksm_merge_across_nodes ? 0 : NUMA(pfn_to_nid(kpfn)); in get_kpfn_nid()
692 unsigned long kpfn; in get_ksm_page() local
697 kpfn = READ_ONCE(stable_node->kpfn); /* Address dependency. */ in get_ksm_page()
698 page = pfn_to_page(kpfn); in get_ksm_page()
748 if (READ_ONCE(stable_node->kpfn) != kpfn) in get_ksm_page()
1687 if (get_kpfn_nid(stable_node_dup->kpfn) != in stable_tree_search()
1804 unsigned long kpfn; in stable_tree_insert() local
1811 kpfn = page_to_pfn(kpage); in stable_tree_insert()
1812 nid = get_kpfn_nid(kpfn); in stable_tree_insert()
1882 stable_node_dup->kpfn = kpfn; in stable_tree_insert()
2046 get_kpfn_nid(READ_ONCE(stable_node->kpfn)) != in cmp_and_merge_page()
2654 VM_BUG_ON_PAGE(stable_node->kpfn != page_to_pfn(oldpage), oldpage); in ksm_migrate_page()
2655 stable_node->kpfn = page_to_pfn(newpage); in ksm_migrate_page()
2683 if (stable_node->kpfn >= start_pfn && in stable_node_dup_remove_range()
2684 stable_node->kpfn < end_pfn) { in stable_node_dup_remove_range()
2743 if (stable_node->kpfn >= start_pfn && in ksm_check_stable_tree()
2744 stable_node->kpfn < end_pfn) in ksm_check_stable_tree()