inode_to_wb_and_lock_list(9)
π inode_to_wb_and_lock_list(9) π
okay so bestie, welcome to this little page from the Kernel API Manual β we're talking about inode_to_wb_and_lock_list, and it's giving "find the wb, then lock it" energy. no cap. π«Ά
β¨ SYNOPSIS β¨
struct bdi_writeback * inode_to_wb_and_lock_list (struct inode *inode );
π ARGUMENTS π
inodeβ the inode of interest. that's the one we're looking at, bestie π
πΈ DESCRIPTION πΈ
so this is literally the same as locked_inode_to_wb_and_lock_list, except for one iconic little detail: inode->i_lock is not held on entry. nope, not held. don't come in here assuming it is. π
π¦ SEE ALSO π¦
the Kernel file is right here: ./fs/fs-writeback.c, and the whole friend group is:
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_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)
mwah π source/version corner: it's from ./fs, dated October 2026, and the page tag is inode_to_wb_and_lock_list(9). byeee π«Άβ¨
π¦ 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