Searched refs:pages_per_zspage (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/mm/
H A Dzsmalloc.c217 int pages_per_zspage; member in struct:size_class
220 /* huge object: pages_per_zspage == 1 && maxobj_per_zspage == 1 */
399 static unsigned int get_maxobj_per_zspage(int size, int pages_per_zspage) get_maxobj_per_zspage() argument
401 return pages_per_zspage * PAGE_SIZE / size; get_maxobj_per_zspage()
512 "pages_per_zspage"); zs_stats_size_show()
528 class->pages_per_zspage); zs_stats_size_show()
530 class->pages_per_zspage; zs_stats_size_show()
535 class->pages_per_zspage); zs_stats_size_show()
974 for (i = 0; i < class->pages_per_zspage; i++) { alloc_zspage()
994 if (i == class->pages_per_zspage - 1) /* last page */ alloc_zspage()
1003 first_page->objects = class->pages_per_zspage * PAGE_SIZE / class->size; alloc_zspage()
1222 static bool can_merge(struct size_class *prev, int size, int pages_per_zspage) can_merge() argument
1224 if (prev->pages_per_zspage != pages_per_zspage) can_merge()
1227 if (get_maxobj_per_zspage(prev->size, prev->pages_per_zspage) can_merge()
1228 != get_maxobj_per_zspage(size, pages_per_zspage)) can_merge()
1420 atomic_long_add(class->pages_per_zspage, zs_malloc()
1425 class->size, class->pages_per_zspage)); zs_malloc()
1491 class->size, class->pages_per_zspage)); zs_free()
1492 atomic_long_sub(class->pages_per_zspage, zs_free()
1700 class->size, class->pages_per_zspage)); putback_zspage()
1701 atomic_long_sub(class->pages_per_zspage, putback_zspage()
1743 class->pages_per_zspage); zs_can_compact()
1745 return obj_wasted * class->pages_per_zspage; zs_can_compact()
1783 pool->stats.pages_compacted += class->pages_per_zspage; __zs_compact()
1917 int pages_per_zspage; zs_create_pool() local
1923 pages_per_zspage = get_pages_per_zspage(size); zs_create_pool()
1935 if (can_merge(prev_class, size, pages_per_zspage)) { zs_create_pool()
1947 class->pages_per_zspage = pages_per_zspage; zs_create_pool()
1948 if (pages_per_zspage == 1 && zs_create_pool()
1949 get_maxobj_per_zspage(size, pages_per_zspage) == 1) zs_create_pool()

Completed in 44 milliseconds