pool_stats
struct zs_pool_stats pool_stats;
memset(&pool_stats, 0x00, sizeof(struct zs_pool_stats));
zs_pool_stats(zram->mem_pool, &pool_stats);
atomic_long_read(&pool_stats.pages_compacted),
struct pool_stats *stats = &pool_global.stats;
struct pool_stats stats;
const struct page_pool_stats *pool_stats = stats;
*data++ = pool_stats->alloc_stats.fast;
*data++ = pool_stats->alloc_stats.slow;
*data++ = pool_stats->alloc_stats.slow_high_order;
*data++ = pool_stats->alloc_stats.empty;
*data++ = pool_stats->alloc_stats.refill;
*data++ = pool_stats->alloc_stats.waive;
*data++ = pool_stats->recycle_stats.cached;
*data++ = pool_stats->recycle_stats.cache_full;
*data++ = pool_stats->recycle_stats.ring;
*data++ = pool_stats->recycle_stats.ring_full;
*data++ = pool_stats->recycle_stats.released_refcnt;