Merge branch 'for-linus' of git://git.kernel.dk/linux-block
[firefly-linux-kernel-4.4.55.git] / include / linux / zsmalloc.h
index 1338190b547838964c95d2cb646ea277320488f1..6398dfae53f103200a38b39c2a00cf89c4d12448 100644 (file)
@@ -34,6 +34,11 @@ enum zs_mapmode {
         */
 };
 
+struct zs_pool_stats {
+       /* How many pages were migrated (freed) */
+       unsigned long pages_compacted;
+};
+
 struct zs_pool;
 
 struct zs_pool *zs_create_pool(char *name, gfp_t flags);
@@ -49,4 +54,5 @@ void zs_unmap_object(struct zs_pool *pool, unsigned long handle);
 unsigned long zs_get_total_pages(struct zs_pool *pool);
 unsigned long zs_compact(struct zs_pool *pool);
 
+void zs_pool_stats(struct zs_pool *pool, struct zs_pool_stats *stats);
 #endif