void *nextfree, *freelist_iter, *freelist_tail;
int tail = DEACTIVATE_TO_HEAD;
unsigned long flags = 0;
- struct slab new;
- struct slab old;
+ struct freelist_counters old, new;
if (READ_ONCE(slab->freelist)) {
stat(s, DEACTIVATE_REMOTE_FREES);
*/
static inline void *get_freelist(struct kmem_cache *s, struct slab *slab)
{
- struct slab new;
+ struct freelist_counters new;
unsigned long counters;
void *freelist;
*/
static inline void *freeze_slab(struct kmem_cache *s, struct slab *slab)
{
- struct slab new;
+ struct freelist_counters new;
unsigned long counters;
void *freelist;
{
void *old_head;
bool was_frozen, was_full;
- struct slab new;
+ struct freelist_counters new;
unsigned long counters;
struct kmem_cache_node *n = NULL;
unsigned long flags;