Home
last modified time | relevance | path

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

/linux/mm/
H A Dzbud.c108 * @first_chunks: the size of the first buddy in chunks, 0 if free
113 unsigned int first_chunks; member
139 zhdr->first_chunks = 0; in init_zbud_page()
187 return NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
267 if (zhdr->first_chunks == 0) in zbud_alloc()
287 zhdr->first_chunks = chunks; in zbud_alloc()
291 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0) { in zbud_alloc()
323 zhdr->first_chunks = 0; in zbud_free()
328 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in zbud_free()
H A Dz3fold.c116 unsigned short first_chunks; member
527 int nfree_before = zhdr->first_chunks ? in num_free_chunks()
534 nfree = NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
542 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0 || in add_to_unbuddied()
562 if (!zhdr->first_chunks && in get_free_buddy()
568 if (!zhdr->first_chunks) in get_free_buddy()
590 return !((zhdr->first_chunks && zhdr->middle_chunks) || in buddy_single()
591 (zhdr->first_chunks && zhdr->last_chunks) || in buddy_single()
611 if (zhdr->first_chunks && zhdr->slots->slot[first_idx]) { in compact_single_buddy()
613 sz = zhdr->first_chunks << CHUNK_SHIFT; in compact_single_buddy()
[all …]