Lines Matching refs:new
167 struct ucounts *ucounts, *new; in alloc_ucounts() local
175 new = kzalloc(sizeof(*new), GFP_KERNEL); in alloc_ucounts()
176 if (!new) in alloc_ucounts()
179 new->ns = ns; in alloc_ucounts()
180 new->uid = uid; in alloc_ucounts()
181 atomic_set(&new->count, 1); in alloc_ucounts()
186 kfree(new); in alloc_ucounts()
188 hlist_add_head(&new->node, hashent); in alloc_ucounts()
189 get_user_ns(new->ns); in alloc_ucounts()
191 return new; in alloc_ucounts()
269 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts() local
270 if (new < 0 || new > max) in inc_rlimit_ucounts()
273 ret = new; in inc_rlimit_ucounts()
282 long new = -1; /* Silence compiler warning */ in dec_rlimit_ucounts() local
287 new = dec; in dec_rlimit_ucounts()
289 return (new == 0); in dec_rlimit_ucounts()
318 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts() local
319 if (new < 0 || new > max) in inc_rlimit_get_ucounts()
322 ret = new; in inc_rlimit_get_ucounts()
328 if (new != 1) in inc_rlimit_get_ucounts()