Lines Matching full:chunks

18  * As in zbud, pages are divided into "chunks".  The size of the chunks is
48 * allocation granularity will be in chunks of size PAGE_SIZE/64. Some chunks
51 * which shows the max number of free chunks in z3fold page, also there will
92 * struct z3fold_header - z3fold page metadata occupying first chunks of each
102 * @first_chunks: the size of the first buddy in chunks, 0 if free
103 * @middle_chunks: the size of the middle buddy in chunks, 0 if free
104 * @last_chunks: the size of the last buddy in chunks, 0 if free
185 /* Converts an allocation size in bytes to size in z3fold chunks */
515 * Returns the number of free chunks in a z3fold page.
524 * of chunks occupied by the first and the last objects. in num_free_chunks()
557 static inline enum buddy get_free_buddy(struct z3fold_header *zhdr, int chunks) in get_free_buddy() argument
563 chunks <= zhdr->start_middle - ZHDR_CHUNKS) in get_free_buddy()
630 short chunks = size_to_chunks(sz); in compact_single_buddy() local
640 new_bud = get_free_buddy(new_zhdr, chunks); in compact_single_buddy()
644 new_zhdr->first_chunks = chunks; in compact_single_buddy()
648 new_zhdr->middle_chunks = chunks; in compact_single_buddy()
654 new_zhdr->last_chunks = chunks; in compact_single_buddy()
713 * there's substantial gain (at least BIG_CHUNK_GAP chunks) in z3fold_compact_page()
792 int chunks = size_to_chunks(size), i; in __z3fold_alloc() local
798 for_each_unbuddied_list(i, chunks) { in __z3fold_alloc()
854 l = &unbuddied[chunks]; in __z3fold_alloc()
1004 int chunks = size_to_chunks(size); in z3fold_alloc() local
1022 bud = get_free_buddy(zhdr, chunks); in z3fold_alloc()
1026 pr_err("No free chunks in unbuddied\n"); in z3fold_alloc()
1064 zhdr->first_chunks = chunks; in z3fold_alloc()
1066 zhdr->last_chunks = chunks; in z3fold_alloc()
1068 zhdr->middle_chunks = chunks; in z3fold_alloc()