obj_cgroup_uncharge_zswap(9)
π obj_cgroup_uncharge_zswap
okay bestie, welcome to the Kernel API Manual β section 9, we're in the kernel internals era and it's honestly giving main character energy. this one's a tiny little function, but she's important, so let's get into it β¨
π NAME π
obj_cgroup_uncharge_zswap β uncharge compression backend memory
like, she uncharges stuff. that's her whole thing. πΈ
β¨ SYNOPSIS β¨
void obj_cgroup_uncharge_zswap (struct obj_cgroup *objcg , size_t size
);
no cap, that's the whole signature. two args, returns nothing (void), very demure, very mindful π«Ά
πΈ ARGUMENTS πΈ
objcgβ the object cgroup π like, the cgroup we're doing the uncharging onsizeβ size of compressed object π¦ literally just how big the compressed thing is
π¦ DESCRIPTION π¦
Uncharges zswap memory on page in. π«
that's it, that's the description. short and iconic, she ate and left no crumbs. when a page comes in, the zswap memory that was being charged gets uncharged. periodt. π₯
π SEE ALSO π
okay so this is the part where I list literally everyone in the group chat π β and yes, all of them, because we don't do half-finished lists here:
Kernel file ./mm/memcontrol.c, plus:
get_mem_cgroup_css_from_folio(9)page_cgroup_ino(9)lruvec_page_state_monotonic(9)mod_memcg_state(9)mod_lruvec_state(9)count_memcg_events(9)get_mem_cgroup_from_mm(9)get_mem_cgroup_from_current(9)get_mem_cgroup_from_folio(9)mem_cgroup_iter(9)mem_cgroup_iter_break(9)mem_cgroup_scan_tasks(9)folio_lruvec_lock(9)folio_lruvec_lock_irq(9)folio_lruvec_lock_irqsave(9)mem_cgroup_update_lru_size(9)mem_cgroup_margin(9)mem_cgroup_print_oom_context(9)mem_cgroup_print_oom_meminfo(9)mem_cgroup_get_oom_group(9)consume_stock(9)__memcg_kmem_charge_page(9)__memcg_kmem_uncharge_page(9)mem_cgroup_wb_stats(9)mem_cgroup_from_private_id(9)mem_cgroup_css_reset(9)mem_cgroup_calculate_protection(9)mem_cgroup_charge_hugetlb(9)mem_cgroup_swapin_charge_folio(9)mem_cgroup_replace_folio(9)mem_cgroup_migrate(9)mem_cgroup_sk_charge(9)mem_cgroup_sk_uncharge(9)__mem_cgroup_try_charge_swap(9)__mem_cgroup_uncharge_swap(9)obj_cgroup_may_zswap(9)obj_cgroup_charge_zswap(9)
that's the whole squad, iykyk π
ngl, if you're reading this at 3am in ./mm/memcontrol.c wondering why your zswap accounting looks weird β hi, same, sending hugs π«
and that's the page, bestie! π this lil' entry comes to you from the source ./mm, dated October 2026, and yes the page name is obj_cgroup_uncharge_zswap(9) β mwah, go touch some folios ππ§ββοΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms