obj_cgroup_uncharge_zswap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 on
  • size β€” 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:

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