Lines Matching full:chunks
17 * As in zbud, pages are divided into "chunks". The size of the chunks is
54 * struct z3fold_header - z3fold page metadata occupying first chunks of each
63 * @first_chunks: the size of the first buddy in chunks, 0 if free
64 * @middle_chunks: the size of the middle buddy in chunks, 0 if free
65 * @last_chunks: the size of the last buddy in chunks, 0 if free
86 * allocation granularity will be in chunks of size PAGE_SIZE/64. Some chunks
89 * which shows the max number of free chunks in z3fold page, also there will
156 /* Converts an allocation size in bytes to size in z3fold chunks */
329 * Returns the number of free chunks in a z3fold page.
338 * of chunks occupied by the first and the last objects. in num_free_chunks()
385 * there's substantial gain (at least BIG_CHUNK_GAP chunks) in z3fold_compact_page()
549 int chunks = 0, i, freechunks; in z3fold_alloc() local
565 chunks = size_to_chunks(size); in z3fold_alloc()
570 for_each_unbuddied_list(i, chunks) { in z3fold_alloc()
617 chunks >= zhdr->start_middle) in z3fold_alloc()
631 pr_err("No free chunks in unbuddied\n"); in z3fold_alloc()
676 zhdr->first_chunks = chunks; in z3fold_alloc()
678 zhdr->last_chunks = chunks; in z3fold_alloc()
680 zhdr->middle_chunks = chunks; in z3fold_alloc()