Lines Matching refs:size_class

185 struct size_class {  struct
223 struct size_class *size_class[ZS_SIZE_CLASSES]; member
489 static struct size_class *zspage_class(struct zs_pool *pool, in zspage_class()
492 return pool->size_class[zspage->class]; in zspage_class()
521 static inline void class_stat_inc(struct size_class *class, in class_stat_inc()
527 static inline void class_stat_dec(struct size_class *class, in class_stat_dec()
533 static inline unsigned long zs_stat_get(struct size_class *class, int type) in zs_stat_get()
555 static unsigned long zs_can_compact(struct size_class *class);
561 struct size_class *class; in zs_stats_size_show()
576 class = pool->size_class[i]; in zs_stats_size_show()
664 static int get_fullness_group(struct size_class *class, struct zspage *zspage) in get_fullness_group()
691 static void insert_zspage(struct size_class *class, in insert_zspage()
703 static void remove_zspage(struct size_class *class, in remove_zspage()
722 static int fix_fullness_group(struct size_class *class, struct zspage *zspage) in fix_fullness_group()
848 static void __free_zspage(struct zs_pool *pool, struct size_class *class, in __free_zspage()
879 static void free_zspage(struct zs_pool *pool, struct size_class *class, in free_zspage()
900 static void init_zspage(struct size_class *class, struct zspage *zspage) in init_zspage()
944 static void create_page_chain(struct size_class *class, struct zspage *zspage, in create_page_chain()
981 struct size_class *class, in alloc_zspage()
1018 static struct zspage *find_get_zspage(struct size_class *class) in find_get_zspage()
1130 static bool can_merge(struct size_class *prev, int pages_per_zspage, in can_merge()
1140 static bool zspage_full(struct size_class *class, struct zspage *zspage) in zspage_full()
1163 struct size_class *class; in zs_lookup_class_index()
1165 class = pool->size_class[get_size_class_index(size)]; in zs_lookup_class_index()
1200 struct size_class *class; in zs_map_object()
1261 struct size_class *class; in zs_unmap_object()
1313 struct size_class *class; in obj_malloc()
1319 class = pool->size_class[zspage->class]; in obj_malloc()
1363 struct size_class *class; in zs_malloc()
1376 class = pool->size_class[get_size_class_index(size)]; in zs_malloc()
1450 struct size_class *class; in zs_free()
1478 static void zs_object_copy(struct size_class *class, unsigned long dst, in zs_object_copy()
1552 static unsigned long find_alloced_obj(struct size_class *class, in find_alloced_obj()
1585 struct size_class *class = pool->size_class[src_zspage->class]; in migrate_zspage()
1614 static struct zspage *isolate_src_zspage(struct size_class *class) in isolate_src_zspage()
1631 static struct zspage *isolate_dst_zspage(struct size_class *class) in isolate_dst_zspage()
1655 static int putback_zspage(struct size_class *class, struct zspage *zspage) in putback_zspage()
1755 static void replace_sub_page(struct size_class *class, struct zspage *zspage, in replace_sub_page()
1802 struct size_class *class; in zs_page_migrate()
1906 struct size_class *class; in async_free_zspage()
1915 class = pool->size_class[i]; in async_free_zspage()
1931 class = pool->size_class[class_idx]; in async_free_zspage()
1972 static unsigned long zs_can_compact(struct size_class *class) in zs_can_compact()
1988 struct size_class *class) in __zs_compact()
2054 struct size_class *class; in zs_compact()
2067 class = pool->size_class[i]; in zs_compact()
2106 struct size_class *class; in zs_shrinker_count()
2112 class = pool->size_class[i]; in zs_shrinker_count()
2173 struct size_class *prev_class = NULL; in zs_create_pool()
2198 struct size_class *class; in zs_create_pool()
2239 pool->size_class[i] = prev_class; in zs_create_pool()
2244 class = kzalloc(sizeof(struct size_class), GFP_KERNEL); in zs_create_pool()
2252 pool->size_class[i] = class; in zs_create_pool()
2292 struct size_class *class = pool->size_class[i]; in zs_destroy_pool()