Lines Matching refs:stable_node_dup

1626 static struct folio *stable_node_dup(struct ksm_stable_node **_stable_node_dup,  in stable_node_dup()  function
1765 return stable_node_dup(_stable_node_dup, _stable_node, root, in __stable_node_chain()
1798 struct ksm_stable_node *stable_node, *stable_node_dup; in stable_tree_search() local
1822 tree_folio = chain_prune(&stable_node_dup, &stable_node, root); in stable_tree_search()
1860 if (!is_page_sharing_candidate(stable_node_dup)) { in stable_tree_search()
1883 tree_folio = ksm_get_folio(stable_node_dup, in stable_tree_search()
1897 if (get_kpfn_nid(stable_node_dup->kpfn) != in stable_tree_search()
1898 NUMA(stable_node_dup->nid)) { in stable_tree_search()
1929 if (stable_node_dup == stable_node) { in stable_tree_search()
1930 VM_BUG_ON(is_stable_node_chain(stable_node_dup)); in stable_tree_search()
1931 VM_BUG_ON(is_stable_node_dup(stable_node_dup)); in stable_tree_search()
1937 rb_replace_node(&stable_node_dup->node, in stable_tree_search()
1945 rb_erase(&stable_node_dup->node, root); in stable_tree_search()
1950 __stable_node_dup_del(stable_node_dup); in stable_tree_search()
1964 stable_node_dup->head = &migrate_nodes; in stable_tree_search()
1965 list_add(&stable_node_dup->list, stable_node_dup->head); in stable_tree_search()
1977 if (stable_node_dup == stable_node) { in stable_tree_search()
1978 VM_BUG_ON(is_stable_node_dup(stable_node_dup)); in stable_tree_search()
1980 stable_node = alloc_stable_node_chain(stable_node_dup, in stable_tree_search()
1991 VM_BUG_ON(!is_stable_node_dup(stable_node_dup)); in stable_tree_search()
2013 struct ksm_stable_node *stable_node, *stable_node_dup; in stable_tree_insert() local
2029 tree_folio = chain(&stable_node_dup, &stable_node, root); in stable_tree_insert()
2057 stable_node_dup = alloc_stable_node(); in stable_tree_insert()
2058 if (!stable_node_dup) in stable_tree_insert()
2061 INIT_HLIST_HEAD(&stable_node_dup->hlist); in stable_tree_insert()
2062 stable_node_dup->kpfn = kpfn; in stable_tree_insert()
2063 stable_node_dup->rmap_hlist_len = 0; in stable_tree_insert()
2064 DO_NUMA(stable_node_dup->nid = nid); in stable_tree_insert()
2066 rb_link_node(&stable_node_dup->node, parent, new); in stable_tree_insert()
2067 rb_insert_color(&stable_node_dup->node, root); in stable_tree_insert()
2074 free_stable_node(stable_node_dup); in stable_tree_insert()
2078 stable_node_chain_add_dup(stable_node_dup, stable_node); in stable_tree_insert()
2081 folio_set_stable_node(kfolio, stable_node_dup); in stable_tree_insert()
2083 return stable_node_dup; in stable_tree_insert()