Re: [PATCH 00/11] mm/zswap, zsmalloc: Per-memcg-lruvec zswap accounting

Joshua Hahn
2026-03-11T19:54:22Z

On Wed, 11 Mar 2026 12:51:37 -0700 Joshua Hahn <joshua.hahnjy@gmail.com> wrote:

Ouch, immediately after sending these out I realized that I forgot to
add a "V2" indicator in the subjects of all of these patches.

I apologize for the noise.

> Joshua Hahn (11):
> mm/zsmalloc: Rename zs_object_copy to zs_obj_copy
> mm/zsmalloc: Make all obj_idx unsigned ints
> mm/zsmalloc: Introduce conditional memcg awareness to zs_pool
> mm/zsmalloc: Introduce objcgs pointer in struct zspage
> mm/zsmalloc: Store obj_cgroup pointer in zspage
> mm/zsmalloc, zswap: Redirect zswap_entry->objcg to zspage
> mm/zsmalloc, zswap: Handle objcg charging and lifetime in zsmalloc
> mm/memcontrol: Track MEMCG_ZSWAPPED in bytes
> mm/vmstat, memcontrol: Track ZSWAP_B, ZSWAPPED_B per-memcg-lruvec
> mm/zsmalloc: Handle single object charge migration in migrate_zspage
> mm/zsmalloc: Handle charge migration in zpdesc substitution
>
> drivers/block/zram/zram_drv.c | 10 +-
> include/linux/memcontrol.h | 20 +-
> include/linux/mmzone.h | 2 +
> include/linux/zsmalloc.h | 9 +-
> mm/memcontrol.c | 75 ++-----
> mm/vmstat.c | 2 +
> mm/zsmalloc.c | 381 ++++++++++++++++++++++++++++++++--
> mm/zswap.c | 66 +++---
> 8 files changed, 431 insertions(+), 134 deletions(-)
>
> --
> 2.52.0