Merge tag 'for-linus-20150909' of git://git.infradead.org/linux-mtd
[cascardo/linux.git] / include / linux / zsmalloc.h
index 1338190..6398dfa 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