inode_cgwb_move_to_attached(9)
π inode_cgwb_move_to_attached(9) π
okay so bestie, we're in the kernel API manual today, and this one is literally called inode_cgwb_move_to_attached β say that five times fast, i dare you π«Ά. it's a little writeback helper, it's giving backstage-crew energy, and honestly? iconic.
β¨ NAME β¨
inode_cgwb_move_to_attached β put the inode onto the wb->b_attached list. that's the whole job. no cap. π
πΈ SYNOPSIS πΈ
void inode_cgwb_move_to_attached (struct inode *inode , struct
bdi_writeback *wb );
literally just two args and zero return value. she does her thing and she leaves. main character behaviour, honestly. β¨
π¦ ARGUMENTS π¦
inodeβ the inode of interest. β οΈ and you must already be holdingi_lockwhen you call this, that's not optional, that's the vibe check.wbβ the targetbdi_writeback. the destination. the place she's moving to. π
π DESCRIPTION π
so what actually happens? okay so: this function removes the inode from wb's io lists, and if necessarily, puts it onto the b_attached list. π«
and here's the lil detail that matters β only inodes attached to cgwb's are kept on this list. that's the rule. that's the whole membership criteria. iykyk π§
π SEE ALSO π
bestie, buckle up, the friend group is huge β this is the friend group chat of kernel file ./fs/fs-writeback.c:
inode_io_list_move_locked(9)wb_wait_for_completion(9)locked_inode_to_wb_and_lock_list(9)inode_to_wb_and_lock_list(9)inode_switch_wbs(9)cleanup_offline_cgwb(9)wbc_attach_and_unlock_inode(9)wbc_attach_fdatawrite_inode(9)wbc_detach_inode(9)wbc_account_cgroup_owner(9)wb_split_bdi_pages(9)bdi_split_work_to_wbs(9)cgroup_writeback_by_id(9)cgroup_writeback_umount(9)wb_start_background_writeback(9)filemap_dontcache_kick_writeback(9)__mark_inode_dirty(9)writeback_inodes_sb_nr(9)writeback_inodes_sb(9)try_to_writeback_inodes_sb(9)sync_inodes_sb(9)write_inode_now(9)sync_inode_metadata(9)
likeβ¦ that's a full roster. go say hi. they're all in there. π
and that's the page, bestie!! π this lil beauty lives in the ./fs directory and it's dated October 2026, and the whole thing is filed under inode_cgwb_move_to_attached(9) β so if you need to find her again, that's the name. mwah. πβ¨π₯
π¦ 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