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
95 * struct z3fold_header - z3fold page metadata occupying first chunks of each
105 * @first_chunks: the size of the first buddy in chunks, 0 if free
106 * @middle_chunks: the size of the middle buddy in chunks, 0 if free
107 * @last_chunks: the size of the last buddy in chunks, 0 if free
198 /* Converts an allocation size in bytes to size in z3fold chunks */
520 * Returns the number of free chunks in a z3fold page.
529 * of chunks occupied by the first and the last objects. in num_free_chunks()
562 static inline enum buddy get_free_buddy(struct z3fold_header *zhdr, int chunks) in get_free_buddy() argument
568 chunks <= zhdr->start_middle - ZHDR_CHUNKS) in get_free_buddy()
635 short chunks = size_to_chunks(sz); in compact_single_buddy() local
645 new_bud = get_free_buddy(new_zhdr, chunks); in compact_single_buddy()
649 new_zhdr->first_chunks = chunks; in compact_single_buddy()
653 new_zhdr->middle_chunks = chunks; in compact_single_buddy()
659 new_zhdr->last_chunks = chunks; in compact_single_buddy()
718 * there's substantial gain (at least BIG_CHUNK_GAP chunks) in z3fold_compact_page()
797 int chunks = size_to_chunks(size), i; in __z3fold_alloc() local
803 for_each_unbuddied_list(i, chunks) { in __z3fold_alloc()
859 l = &unbuddied[chunks]; in __z3fold_alloc()
1013 int chunks = size_to_chunks(size); in z3fold_alloc() local
1031 bud = get_free_buddy(zhdr, chunks); in z3fold_alloc()
1036 pr_err("No free chunks in unbuddied\n"); in z3fold_alloc()
1074 zhdr->first_chunks = chunks; in z3fold_alloc()
1076 zhdr->last_chunks = chunks; in z3fold_alloc()
1078 zhdr->middle_chunks = chunks; in z3fold_alloc()