inode_attach_wb(9)
πΈ 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 beNULL), so yes,NULLis 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:foliomay beNULLβ thatβs in the arguments, not a drill. π«Ά
π SEE ALSO π
- Kernel file
./include/linux/writeback.hβ plus the squad:wb_domain_size_changed(9),inode_detach_wb(9), andwbc_init_bio(9)π
made with π from ./include/linux, dated October 2026 β mwah, inode_attach_wb(9) out. π
π
π¦ 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