On Thu, Aug 11, 2022 at 4:19 PM liliguang <liliguang@xxxxxxxxx> wrote: > > From: Li Liguang <liliguang@xxxxxxxxx> > > Kswapd will reclaim memory when memory pressure is high, the > annonymous memory will be compressed and stored in the zpool > if zswap is enabled. The memcg_kmem_bypass() in > get_obj_cgroup_from_page() will bypass the kernel thread and > cause the compressed memory not charged to its memory cgroup. > > Remove the memcg_kmem_bypass() and properly charge compressed > memory to its corresponding memory cgroup. > > Signed-off-by: Li Liguang <liliguang@xxxxxxxxx> Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx> Thanks.