Lines Matching refs:mpol_new
258 static struct mempolicy *mpol_new(unsigned short mode, unsigned short flags, in mpol_new() function
849 new = mpol_new(mode, flags, nodes); in do_set_mempolicy()
1275 new = mpol_new(mode, mode_flags, nmask); in do_mbind()
2509 struct mempolicy *mpol_new = NULL; in shared_policy_replace() local
2529 *mpol_new = *n->policy; in shared_policy_replace()
2530 atomic_set(&mpol_new->refcnt, 1); in shared_policy_replace()
2531 sp_node_init(n_new, end, n->end, mpol_new); in shared_policy_replace()
2535 mpol_new = NULL; in shared_policy_replace()
2550 if (mpol_new) in shared_policy_replace()
2551 mpol_put(mpol_new); in shared_policy_replace()
2563 mpol_new = kmem_cache_alloc(policy_cache, GFP_KERNEL); in shared_policy_replace()
2564 if (!mpol_new) in shared_policy_replace()
2566 atomic_set(&mpol_new->refcnt, 1); in shared_policy_replace()
2595 new = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); in mpol_shared_policy_init()
2881 new = mpol_new(mode, mode_flags, &nodes); in mpol_parse_str()