cleanup_offline_cgwb(9)
π cleanup_offline_cgwb(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a little kernel function called cleanup_offline_cgwb, and honestly? it's giving cleanup crew energy π§Ήπ¦
π NAME π
cleanup_offline_cgwb β detach associated inodes π«Ά
β¨ SYNOPSIS β¨
bool cleanup_offline_cgwb (struct bdi_writeback *wb );
like, it takes one thing and returns a bool, periodt π
πΈ ARGUMENTS πΈ
wbβ the target wb π― that's literally the whole argument, no cap
π DESCRIPTION π
so here's the vibe π«: this function switches all the inodes attached to wb over to a nearest living ancestor's wb β the whole point being to eventually release the dying wb ππ it's basically helping the old one retire gracefully, main character energy for the ancestor ngl.
it returns true if not all inodes were switched and the function has to be restarted π β so like, if you get true back, you're not done, you gotta run it again fr fr π
π¦ SEE ALSO π¦
- Kernel file
./fs/fs-writeback.cπ inode_io_list_move_locked(9)wb_wait_for_completion(9)inode_cgwb_move_to_attached(9)locked_inode_to_wb_and_lock_list(9)inode_to_wb_and_lock_list(9)inode_switch_wbs(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 whole friend group right there π«π
that's the whole page bestie, go forth and detach those inodes πβ
source ./fs, dated October 2026 β mwah π and that's the footer, we ate and left no crumbs ππ
π¦ 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