Lines Matching refs:new
160 struct ucounts *ucounts, *new; in alloc_ucounts() local
166 new = kzalloc(sizeof(*new), GFP_KERNEL); in alloc_ucounts()
167 if (!new) in alloc_ucounts()
170 new->ns = ns; in alloc_ucounts()
171 new->uid = uid; in alloc_ucounts()
172 rcuref_init(&new->count, 1); in alloc_ucounts()
178 kfree(new); in alloc_ucounts()
182 hlist_nulls_add_head_rcu(&new->node, hashent); in alloc_ucounts()
183 get_user_ns(new->ns); in alloc_ucounts()
185 return new; in alloc_ucounts()
254 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts() local
255 if (new < 0 || new > max) in inc_rlimit_ucounts()
258 ret = new; in inc_rlimit_ucounts()
267 long new = -1; /* Silence compiler warning */ in dec_rlimit_ucounts() local
272 new = dec; in dec_rlimit_ucounts()
274 return (new == 0); in dec_rlimit_ucounts()
304 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts() local
305 if (new < 0 || new > max) in inc_rlimit_get_ucounts()
308 ret = new; in inc_rlimit_get_ucounts()
315 if (new != 1) in inc_rlimit_get_ucounts()