Home
last modified time | relevance | path

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

/mm/
Dzbud.c119 unsigned int last_chunks; member
243 zhdr->last_chunks = 0; in init_zbud_page()
275 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle()
292 return NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
398 zhdr->last_chunks = chunks; in zbud_alloc()
400 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0) { in zbud_alloc()
440 zhdr->last_chunks = 0; in zbud_free()
453 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in zbud_free()
528 if (zhdr->last_chunks) in zbud_reclaim_page()
546 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in zbud_reclaim_page()
[all …]
Dz3fold.c123 unsigned short last_chunks; member
321 zhdr->last_chunks = 0; in init_z3fold_page()
390 h |= (zhdr->last_chunks << BUDDY_SHIFT); in __encode_handle()
527 int nfree_after = zhdr->last_chunks ? in num_free_chunks()
532 nfree = NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
540 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0 || in add_to_unbuddied()
577 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in z3fold_compact_page()
591 if (zhdr->first_chunks != 0 && zhdr->last_chunks == 0 && in z3fold_compact_page()
597 } else if (zhdr->last_chunks != 0 && zhdr->first_chunks == 0 && in z3fold_compact_page()
598 TOTAL_CHUNKS - (zhdr->last_chunks + zhdr->start_middle in z3fold_compact_page()
[all …]