Lines Matching refs:nid
425 int nid = page_to_nid(page); in queue_pages_required() local
428 return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); in queue_pages_required()
1889 int nid; in offset_il_node() local
1894 nid = first_node(pol->v.nodes); in offset_il_node()
1896 nid = next_node(nid, pol->v.nodes); in offset_il_node()
1897 return nid; in offset_il_node()
1941 int nid; in huge_node() local
1947 nid = interleave_nid(*mpol, vma, addr, in huge_node()
1950 nid = policy_node(gfp_flags, *mpol, numa_node_id()); in huge_node()
1954 return nid; in huge_node()
1976 int nid; in init_nodemask_of_mempolicy() local
1986 nid = numa_node_id(); in init_nodemask_of_mempolicy()
1988 nid = mempolicy->v.preferred_node; in init_nodemask_of_mempolicy()
1989 init_nodemask_of_node(mask, nid); in init_nodemask_of_mempolicy()
2054 unsigned nid) in alloc_page_interleave() argument
2058 page = __alloc_pages(gfp, order, nid); in alloc_page_interleave()
2062 if (page && page_to_nid(page) == nid) { in alloc_page_interleave()
2105 unsigned nid; in alloc_pages_vma() local
2107 nid = interleave_nid(pol, vma, addr, PAGE_SHIFT + order); in alloc_pages_vma()
2109 page = alloc_page_interleave(gfp, order, nid); in alloc_pages_vma()
2711 int nid, prefer = 0; in numa_policy_init() local
2721 for_each_node(nid) { in numa_policy_init()
2722 preferred_node_policy[nid] = (struct mempolicy) { in numa_policy_init()
2726 .v = { .preferred_node = nid, }, in numa_policy_init()
2736 for_each_node_state(nid, N_MEMORY) { in numa_policy_init()
2737 unsigned long total_pages = node_present_pages(nid); in numa_policy_init()
2742 prefer = nid; in numa_policy_init()
2747 node_set(nid, interleave_nodes); in numa_policy_init()