Lines Matching refs:new
111 struct primes *new; in expand_to_next_prime() local
127 new = kmalloc(sizeof(*new) + bitmap_size(sz), in expand_to_next_prime()
129 if (!new) in expand_to_next_prime()
135 kfree(new); in expand_to_next_prime()
143 bitmap_fill(new->primes, sz); in expand_to_next_prime()
144 bitmap_copy(new->primes, p->primes, p->sz); in expand_to_next_prime()
145 for (y = 2UL; y < sz; y = find_next_bit(new->primes, sz, y + 1)) in expand_to_next_prime()
146 new->last = clear_multiples(y, new->primes, p->sz, sz); in expand_to_next_prime()
147 new->sz = sz; in expand_to_next_prime()
149 BUG_ON(new->last <= x); in expand_to_next_prime()
151 rcu_assign_pointer(primes, new); in expand_to_next_prime()