Lines Matching refs:mempolicy

125 static struct mempolicy default_policy = {
130 static struct mempolicy preferred_node_policy[MAX_NUMNODES];
158 struct mempolicy *get_task_policy(struct task_struct *p) in get_task_policy()
160 struct mempolicy *pol = p->mempolicy; in get_task_policy()
178 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
179 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
182 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask()
195 static int mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_nodemask()
203 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred()
221 static int mpol_set_nodemask(struct mempolicy *pol, in mpol_set_nodemask()
258 static struct mempolicy *mpol_new(unsigned short mode, unsigned short flags, in mpol_new()
261 struct mempolicy *policy; in mpol_new()
304 void __mpol_put(struct mempolicy *p) in __mpol_put()
311 static void mpol_rebind_default(struct mempolicy *pol, const nodemask_t *nodes) in mpol_rebind_default()
315 static void mpol_rebind_nodemask(struct mempolicy *pol, const nodemask_t *nodes) in mpol_rebind_nodemask()
335 static void mpol_rebind_preferred(struct mempolicy *pol, in mpol_rebind_preferred()
348 static void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask) in mpol_rebind_policy()
368 mpol_rebind_policy(tsk->mempolicy, new); in mpol_rebind_task()
751 struct mempolicy *pol) in vma_replace_policy()
754 struct mempolicy *old; in vma_replace_policy()
755 struct mempolicy *new; in vma_replace_policy()
784 unsigned long end, struct mempolicy *new_pol) in mbind_range()
846 struct mempolicy *new, *old; in do_set_mempolicy()
865 old = current->mempolicy; in do_set_mempolicy()
866 current->mempolicy = new; in do_set_mempolicy()
882 static void get_policy_nodemask(struct mempolicy *p, nodemask_t *nodes) in get_policy_nodemask()
926 struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL; in do_get_mempolicy()
979 } else if (pol == current->mempolicy && in do_get_mempolicy()
1254 struct mempolicy *new; in do_mbind()
1674 struct mempolicy *__get_vma_policy(struct vm_area_struct *vma, in __get_vma_policy()
1677 struct mempolicy *pol = NULL; in __get_vma_policy()
1711 static struct mempolicy *get_vma_policy(struct vm_area_struct *vma, in get_vma_policy()
1714 struct mempolicy *pol = __get_vma_policy(vma, addr); in get_vma_policy()
1724 struct mempolicy *pol; in vma_policy_mof()
1744 static int apply_policy_zone(struct mempolicy *policy, enum zone_type zone) in apply_policy_zone()
1768 nodemask_t *policy_nodemask(gfp_t gfp, struct mempolicy *policy) in policy_nodemask()
1791 static int policy_node(gfp_t gfp, struct mempolicy *policy, int nd) in policy_node()
1808 static unsigned interleave_nodes(struct mempolicy *policy) in interleave_nodes()
1825 struct mempolicy *policy; in mempolicy_slab_node()
1831 policy = current->mempolicy; in mempolicy_slab_node()
1871 static unsigned offset_il_node(struct mempolicy *pol, unsigned long n) in offset_il_node()
1897 static inline unsigned interleave_nid(struct mempolicy *pol, in interleave_nid()
1935 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node()
1973 struct mempolicy *mempolicy; in init_nodemask_of_mempolicy() local
1975 if (!(mask && current->mempolicy)) in init_nodemask_of_mempolicy()
1979 mempolicy = current->mempolicy; in init_nodemask_of_mempolicy()
1980 switch (mempolicy->mode) { in init_nodemask_of_mempolicy()
1985 *mask = mempolicy->nodes; in init_nodemask_of_mempolicy()
2014 struct mempolicy *mempolicy; in mempolicy_in_oom_domain() local
2021 mempolicy = tsk->mempolicy; in mempolicy_in_oom_domain()
2022 if (mempolicy && mempolicy->mode == MPOL_BIND) in mempolicy_in_oom_domain()
2023 ret = nodes_intersects(mempolicy->nodes, *mask); in mempolicy_in_oom_domain()
2049 int nid, struct mempolicy *pol) in alloc_pages_preferred_many()
2088 struct mempolicy *pol; in alloc_pages_vma()
2174 struct mempolicy *pol = &default_policy; in alloc_pages()
2209 struct mempolicy *pol, unsigned long nr_pages, in alloc_pages_bulk_array_interleave()
2244 struct mempolicy *pol, unsigned long nr_pages, in alloc_pages_bulk_array_preferred_many()
2272 struct mempolicy *pol = &default_policy; in alloc_pages_bulk_array_mempolicy()
2292 struct mempolicy *pol = mpol_dup(vma_policy(src)); in vma_dup_policy()
2312 struct mempolicy *__mpol_dup(struct mempolicy *old) in __mpol_dup()
2314 struct mempolicy *new = kmem_cache_alloc(policy_cache, GFP_KERNEL); in __mpol_dup()
2320 if (old == current->mempolicy) { in __mpol_dup()
2336 bool __mpol_equal(struct mempolicy *a, struct mempolicy *b) in __mpol_equal()
2432 struct mempolicy *
2435 struct mempolicy *pol = NULL; in mpol_shared_policy_lookup()
2472 struct mempolicy *pol; in mpol_misplaced()
2554 struct mempolicy *pol; in mpol_put_task_policy()
2557 pol = task->mempolicy; in mpol_put_task_policy()
2558 task->mempolicy = NULL; in mpol_put_task_policy()
2571 unsigned long end, struct mempolicy *pol) in sp_node_init()
2579 struct mempolicy *pol) in sp_alloc()
2582 struct mempolicy *newpol; in sp_alloc()
2605 struct mempolicy *mpol_new = NULL; in shared_policy_replace()
2675 void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol) in mpol_shared_policy_init()
2684 struct mempolicy *new; in mpol_shared_policy_init()
2715 struct vm_area_struct *vma, struct mempolicy *npol) in mpol_set_shared_policy()
2811 sizeof(struct mempolicy), in numa_policy_init()
2819 preferred_node_policy[nid] = (struct mempolicy) { in numa_policy_init()
2889 int mpol_parse_str(char *str, struct mempolicy **mpol) in mpol_parse_str()
2891 struct mempolicy *new = NULL; in mpol_parse_str()
3023 void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) in mpol_to_str()