Home
last modified time | relevance | path

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

/linux-6.12.1/mm/
Dzbud.c114 unsigned int last_chunks; member
140 zhdr->last_chunks = 0; in init_zbud_page()
170 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle()
187 return NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
289 zhdr->last_chunks = chunks; in zbud_alloc()
291 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0) { in zbud_alloc()
321 zhdr->last_chunks = 0; in zbud_free()
328 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in zbud_free()
Dz3fold.c118 unsigned short last_chunks; member
389 h |= (zhdr->last_chunks << BUDDY_SHIFT); in __encode_handle()
529 int nfree_after = zhdr->last_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()
565 else if (!zhdr->last_chunks) in get_free_buddy()
570 else if (!zhdr->last_chunks) in get_free_buddy()
591 (zhdr->first_chunks && zhdr->last_chunks) || in buddy_single()
592 (zhdr->middle_chunks && zhdr->last_chunks)); in buddy_single()
621 } else if (zhdr->last_chunks && zhdr->slots->slot[last_idx]) { in compact_single_buddy()
[all …]