inode_attach_wb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 inode_attach_wb(9) 🌸

okay so welcome to the Kernel API Manual, bestie β€” we’re doing inode_attach_wb(9) today and it’s honestly such a little icon. πŸ’…


πŸ’– NAME πŸ’–

inode_attach_wb β€” associate an inode with its wb 🫢

✨ SYNOPSIS ✨

the whole signature, exactly as it is, no edits:

void inode_attach_wb (struct inode *inode , struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” inode of interest, literally the one we’re looking at.
  • folio β€” folio being dirtied (may be NULL), so yes, NULL is allowed, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here’s the vibe: if inode doesn’t have its wb, associate it with the wb matching the memcg of folio β€” or, if folio is NULL, associate it with the wb matching current. That’s the whole thing. ✨

It may be called w/ or w/o inode->i_lock, so either way is fine. No cap. πŸ’…

bestie reminder: folio may be NULL β€” that’s in the arguments, not a drill. 🫢

🌈 SEE ALSO 🌈


made with πŸ’– from ./include/linux, dated October 2026 β€” mwah, inode_attach_wb(9) out. πŸ’…πŸŽ€

πŸ“¦ where this page comes from