Lines Matching refs:mpol_new
261 static struct mempolicy *mpol_new(unsigned short mode, unsigned short flags, in mpol_new() function
863 new = mpol_new(mode, flags, nodes); in do_set_mempolicy()
1286 new = mpol_new(mode, mode_flags, nmask); in do_mbind()
2703 struct mempolicy *mpol_new = NULL; in shared_policy_replace() local
2723 *mpol_new = *n->policy; in shared_policy_replace()
2724 atomic_set(&mpol_new->refcnt, 1); in shared_policy_replace()
2725 sp_node_init(n_new, end, n->end, mpol_new); in shared_policy_replace()
2729 mpol_new = NULL; in shared_policy_replace()
2744 if (mpol_new) in shared_policy_replace()
2745 mpol_put(mpol_new); in shared_policy_replace()
2757 mpol_new = kmem_cache_alloc(policy_cache, GFP_KERNEL); in shared_policy_replace()
2758 if (!mpol_new) in shared_policy_replace()
2760 atomic_set(&mpol_new->refcnt, 1); in shared_policy_replace()
2789 new = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); in mpol_shared_policy_init()
3075 new = mpol_new(mode, mode_flags, &nodes); in mpol_parse_str()