wbc_account_cgroup_owner(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

wbc_account_cgroup_owner β€” bestie, this is the one that accounts writeback so it can update the cgroup ownership of an inode πŸ’…

(it lives in the Kernel API Manual, section 9, if you were wondering πŸŽ€)


🌸 SYNOPSIS 🌸

void wbc_account_cgroup_owner (struct writeback_control *wbc , struct
folio *folio , size_t bytes );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • wbc β€” the writeback_control of the writeback that's currently in progress, i.e. the vibe check for the writeout happening right now ✨
  • folio β€” the folio that's being written out, the actual main character here 🫢
  • bytes β€” literally how many bytes are being written out, keep count bestie πŸ”’

πŸ’– DESCRIPTION πŸ’–

okay so bytes from folio are about to be written out during the writeback that wbc is controlling. That's the whole situation.

What you do with that: keep the book for foreign inode detection πŸ‘‘ β€” like, maintain the accounting, don't skip it, it matters. And for the full picture on that whole thing, go see wbc_detach_inode.


⭐ SEE ALSO ⭐

Kernel file ./fs/fs-writeback.c β€” and honestly the whole friend group shows up here, so let's give them their moment πŸŽ€


πŸ’€ reminder bestie: this page is from ./fs, dated October 2026 β€” so if you're reading this in some other kernel era, double-check before you @ me, fr fr 🌈

laterz, go account those bytes πŸ’œπŸ§š

πŸ“¦ where this page comes from