Lines Matching defs:nid

155  * @kpfn: page frame number of this ksm page (perhaps temporarily on wrong nid)
158 * @nid: NUMA node id of stable tree in which linked (may not match kpfn)
184 int nid;
192 * @nid: NUMA node id of unstable tree in which linked (may not match page)
207 int nid; /* when node of unstable tree */
560 rb_erase(&dup->node, root_stable_tree + NUMA(dup->nid));
820 chain->nid = NUMA_NO_NODE; /* debug */
1039 root_unstable_tree + NUMA(rmap_item->nid));
1174 int nid;
1177 for (nid = 0; nid < ksm_nr_node_ids; nid++) {
1178 while (root_stable_tree[nid].rb_node) {
1179 stable_node = rb_entry(root_stable_tree[nid].rb_node,
1182 root_stable_tree + nid)) {
1184 break; /* proceed to next nid */
1557 /* Unstable nid is in union with stable anon_vma: remove first */
1820 int nid;
1836 nid = get_kpfn_nid(folio_pfn(folio));
1837 root = root_stable_tree + nid;
1962 NUMA(stable_node_dup->nid)) {
1974 DO_NUMA(page_node->nid = nid);
2000 DO_NUMA(page_node->nid = nid);
2018 DO_NUMA(page_node->nid = nid);
2055 * of the current nid for this page
2061 DO_NUMA(page_node->nid = nid);
2075 int nid;
2084 nid = get_kpfn_nid(kpfn);
2085 root = root_stable_tree + nid;
2157 DO_NUMA(stable_node_dup->nid = nid);
2201 int nid;
2203 nid = get_kpfn_nid(page_to_pfn(page));
2204 root = root_unstable_tree + nid;
2236 page_to_nid(tree_page) != nid) {
2252 DO_NUMA(rmap_item->nid = nid);
2323 NUMA(stable_node->nid)) {
2577 int nid;
2619 for (nid = 0; nid < ksm_nr_node_ids; nid++)
2620 root_unstable_tree[nid] = RB_ROOT;
3305 int nid;
3307 for (nid = 0; nid < ksm_nr_node_ids; nid++) {
3308 node = rb_first(root_stable_tree + nid);
3314 nid))
3315 node = rb_first(root_stable_tree + nid);