Home
last modified time | relevance | path

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

/Linux-v4.19/mm/
Dzbud.c117 unsigned int first_chunks; member
241 zhdr->first_chunks = 0; in init_zbud_page()
291 return NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
375 if (zhdr->first_chunks == 0) in zbud_alloc()
395 zhdr->first_chunks = chunks; in zbud_alloc()
399 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0) { in zbud_alloc()
441 zhdr->first_chunks = 0; in zbud_free()
452 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in zbud_free()
525 if (zhdr->first_chunks) in zbud_reclaim_page()
545 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in zbud_reclaim_page()
[all …]
Dz3fold.c75 unsigned short first_chunks; member
181 zhdr->first_chunks = 0; in init_z3fold_page()
331 int nfree_before = zhdr->first_chunks ? in num_free_chunks()
338 nfree = NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
363 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in z3fold_compact_page()
366 zhdr->first_chunks = zhdr->middle_chunks; in z3fold_compact_page()
377 if (zhdr->first_chunks != 0 && zhdr->last_chunks == 0 && in z3fold_compact_page()
378 zhdr->start_middle - (zhdr->first_chunks + ZHDR_CHUNKS) >= in z3fold_compact_page()
380 mchunk_memmove(zhdr, zhdr->first_chunks + ZHDR_CHUNKS); in z3fold_compact_page()
381 zhdr->start_middle = zhdr->first_chunks + ZHDR_CHUNKS; in z3fold_compact_page()
[all …]