Home
last modified time | relevance | path

Searched refs:random_seq (Results 1 – 2 of 2) sorted by relevance

/linux/mm/
H A Dslab_common.c1058 if (count < 2 || cachep->random_seq) in cache_random_seq_create()
1061 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create()
1062 if (!cachep->random_seq) in cache_random_seq_create()
1065 freelist_randomize(cachep->random_seq, count); in cache_random_seq_create()
1072 kfree(cachep->random_seq); in cache_random_seq_destroy()
1073 cachep->random_seq = NULL; in cache_random_seq_destroy()
H A Dslub.c2446 if (s->random_seq) in init_cache_random_seq()
2457 if (s->random_seq) { in init_cache_random_seq()
2461 s->random_seq[i] *= s->size; in init_cache_random_seq()
2492 idx = s->random_seq[*pos]; in next_freelist_entry()
2509 if (slab->objects < 2 || !s->random_seq) in shuffle_freelist()