Lines Matching refs:new
121 struct primes *new; in expand_to_next_prime() local
137 new = kmalloc(sizeof(*new) + bitmap_size(sz), in expand_to_next_prime()
139 if (!new) in expand_to_next_prime()
145 kfree(new); in expand_to_next_prime()
153 bitmap_fill(new->primes, sz); in expand_to_next_prime()
154 bitmap_copy(new->primes, p->primes, p->sz); in expand_to_next_prime()
155 for (y = 2UL; y < sz; y = find_next_bit(new->primes, sz, y + 1)) in expand_to_next_prime()
156 new->last = clear_multiples(y, new->primes, p->sz, sz); in expand_to_next_prime()
157 new->sz = sz; in expand_to_next_prime()
159 BUG_ON(new->last <= x); in expand_to_next_prime()
161 rcu_assign_pointer(primes, new); in expand_to_next_prime()