Lines Matching full:chunks

18  * As in zbud, pages are divided into "chunks".  The size of the chunks is
52 * allocation granularity will be in chunks of size PAGE_SIZE/64. Some chunks
55 * which shows the max number of free chunks in z3fold page, also there will
99 * struct z3fold_header - z3fold page metadata occupying first chunks of each
109 * @first_chunks: the size of the first buddy in chunks, 0 if free
110 * @middle_chunks: the size of the middle buddy in chunks, 0 if free
111 * @last_chunks: the size of the last buddy in chunks, 0 if free
203 /* Converts an allocation size in bytes to size in z3fold chunks */
578 * Returns the number of free chunks in a z3fold page.
587 * of chunks occupied by the first and the last objects. in num_free_chunks()
620 static inline enum buddy get_free_buddy(struct z3fold_header *zhdr, int chunks) in get_free_buddy() argument
626 chunks <= zhdr->start_middle - ZHDR_CHUNKS) in get_free_buddy()
693 short chunks = size_to_chunks(sz); in compact_single_buddy() local
703 new_bud = get_free_buddy(new_zhdr, chunks); in compact_single_buddy()
707 new_zhdr->first_chunks = chunks; in compact_single_buddy()
711 new_zhdr->middle_chunks = chunks; in compact_single_buddy()
717 new_zhdr->last_chunks = chunks; in compact_single_buddy()
780 * there's substantial gain (at least BIG_CHUNK_GAP chunks) in z3fold_compact_page()
863 int chunks = size_to_chunks(size), i; in __z3fold_alloc() local
869 for_each_unbuddied_list(i, chunks) { in __z3fold_alloc()
926 l = &unbuddied[chunks]; in __z3fold_alloc()
1077 int chunks = size_to_chunks(size); in z3fold_alloc() local
1095 bud = get_free_buddy(zhdr, chunks); in z3fold_alloc()
1102 pr_err("No free chunks in unbuddied\n"); in z3fold_alloc()
1162 zhdr->first_chunks = chunks; in z3fold_alloc()
1164 zhdr->last_chunks = chunks; in z3fold_alloc()
1166 zhdr->middle_chunks = chunks; in z3fold_alloc()