Lines Matching refs:pages_per_zspage
194 int pages_per_zspage; member
596 class->pages_per_zspage; in zs_stats_size_show()
600 class->pages_per_zspage, freeable); in zs_stats_size_show()
876 atomic_long_sub(class->pages_per_zspage, &pool->pages_allocated); in __free_zspage()
950 int nr_pages = class->pages_per_zspage; in create_page_chain()
968 class->pages_per_zspage == 1)) in create_page_chain()
994 for (i = 0; i < class->pages_per_zspage; i++) { in alloc_zspage()
1130 static bool can_merge(struct size_class *prev, int pages_per_zspage, in can_merge() argument
1133 if (prev->pages_per_zspage == pages_per_zspage && in can_merge()
1405 atomic_long_add(class->pages_per_zspage, &pool->pages_allocated); in zs_malloc()
1984 return obj_wasted * class->pages_per_zspage; in zs_can_compact()
2021 pages_freed += class->pages_per_zspage; in __zs_compact()
2196 int pages_per_zspage; in zs_create_pool() local
2204 pages_per_zspage = calculate_zspage_chain_size(size); in zs_create_pool()
2205 objs_per_zspage = pages_per_zspage * PAGE_SIZE / size; in zs_create_pool()
2213 if (pages_per_zspage != 1 && objs_per_zspage != 1 && in zs_create_pool()
2238 if (can_merge(prev_class, pages_per_zspage, objs_per_zspage)) { in zs_create_pool()
2250 class->pages_per_zspage = pages_per_zspage; in zs_create_pool()