Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/mm/
H A Dslab_common.c905 if (count < 2 || cachep->random_seq) in cache_random_seq_create()
908 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create()
909 if (!cachep->random_seq) in cache_random_seq_create()
915 freelist_randomize(&state, cachep->random_seq, count); in cache_random_seq_create()
922 kfree(cachep->random_seq); in cache_random_seq_destroy()
923 cachep->random_seq = NULL; in cache_random_seq_destroy()
H A Dslub.c1692 if (s->random_seq) in init_cache_random_seq()
1703 if (s->random_seq) { in init_cache_random_seq()
1707 s->random_seq[i] *= s->size; in init_cache_random_seq()
1738 idx = s->random_seq[*pos]; in next_freelist_entry()
1755 if (page->objects < 2 || !s->random_seq) in shuffle_freelist()
H A Dslab.c2397 if (!cachep->random_seq) { in freelist_state_initialize()
2401 state->list = cachep->random_seq; in freelist_state_initialize()
/OK3568_Linux_fs/kernel/include/linux/
H A Dslab_def.h81 unsigned int *random_seq; member
H A Dslub_def.h125 unsigned int *random_seq; member