Lines Matching defs:zs_pool

252 struct zs_pool {
302 static int zs_register_migration(struct zs_pool *pool);
303 static void zs_unregister_migration(struct zs_pool *pool);
307 static void kick_deferred_free(struct zs_pool *pool);
308 static void init_deferred_free(struct zs_pool *pool);
309 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage);
313 static int zs_register_migration(struct zs_pool *pool) { return 0; }
314 static void zs_unregister_migration(struct zs_pool *pool) {}
318 static void kick_deferred_free(struct zs_pool *pool) {}
319 static void init_deferred_free(struct zs_pool *pool) {}
320 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage) {}
323 static int create_cache(struct zs_pool *pool)
341 static void destroy_cache(struct zs_pool *pool)
347 static unsigned long cache_alloc_handle(struct zs_pool *pool, gfp_t gfp)
353 static void cache_free_handle(struct zs_pool *pool, unsigned long handle)
358 static struct zspage *cache_alloc_zspage(struct zs_pool *pool, gfp_t flags)
364 static void cache_free_zspage(struct zs_pool *pool, struct zspage *zspage)
589 struct zs_pool *pool = s->private;
645 static void zs_pool_stat_create(struct zs_pool *pool, const char *name)
658 static void zs_pool_stat_destroy(struct zs_pool *pool)
672 static inline void zs_pool_stat_create(struct zs_pool *pool, const char *name)
676 static inline void zs_pool_stat_destroy(struct zs_pool *pool)
931 static void __free_zspage(struct zs_pool *pool, struct size_class *class,
963 static void free_zspage(struct zs_pool *pool, struct size_class *class,
1059 static struct zspage *alloc_zspage(struct zs_pool *pool,
1227 unsigned long zs_get_total_pages(struct zs_pool *pool)
1248 void *zs_map_object(struct zs_pool *pool, unsigned long handle,
1307 void zs_unmap_object(struct zs_pool *pool, unsigned long handle)
1358 size_t zs_huge_class_size(struct zs_pool *pool)
1416 unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t gfp)
1497 void zs_free(struct zs_pool *pool, unsigned long handle)
1652 static int migrate_zspage(struct zs_pool *pool, struct size_class *class,
1853 static void putback_zspage_deferred(struct zs_pool *pool,
1865 static inline void zs_pool_dec_isolated(struct zs_pool *pool)
1904 struct zs_pool *pool;
1961 struct zs_pool *pool;
2089 struct zs_pool *pool;
2124 static int zs_register_migration(struct zs_pool *pool)
2137 static bool pool_isolated_are_drained(struct zs_pool *pool)
2143 static void wait_for_isolated_drain(struct zs_pool *pool)
2149 * zspages, so we need only wait for the zs_pool's isolated
2156 static void zs_unregister_migration(struct zs_pool *pool)
2183 struct zs_pool *pool = container_of(work, struct zs_pool,
2210 static void kick_deferred_free(struct zs_pool *pool)
2215 static void init_deferred_free(struct zs_pool *pool)
2220 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage)
2252 static unsigned long __zs_compact(struct zs_pool *pool,
2303 unsigned long zs_compact(struct zs_pool *pool)
2323 void zs_pool_stats(struct zs_pool *pool, struct zs_pool_stats *stats)
2333 struct zs_pool *pool = container_of(shrinker, struct zs_pool,
2352 struct zs_pool *pool = container_of(shrinker, struct zs_pool,
2368 static void zs_unregister_shrinker(struct zs_pool *pool)
2373 static int zs_register_shrinker(struct zs_pool *pool)
2393 struct zs_pool *zs_create_pool(const char *name)
2396 struct zs_pool *pool;
2509 void zs_destroy_pool(struct zs_pool *pool)