sync_inodes_sb(9)
π sync_inodes_sb β kernel API manual, but make it make sense π
okay so bestie, welcome to the <purple>sync_inodes_sb(9)</purple> page β it's a kernel API manual moment, and honestly? It's a short one, so we're gonna get through it together and you're gonna get it. π«Ά
β¨ NAME β¨
sync_inodes_sb β sync sb inode pages, no cap π«
πΈ SYNOPSIS πΈ
void sync_inodes_sb (struct super_block *sb );
that's it. that's the whole thing. one function, one argument, zero drama. it returns void bestie, so like... don't go looking for a return value, it's not coming. π
π¦ ARGUMENTS π¦
sbβ the superblock π β literally the superblock, that's the whole description, she's doing her job and saying exactly what she needs to say.
π DESCRIPTION π
okay so here's the actual tea β β this function writes and waits on any dirty inode belonging to this super_block.
read that again, because both halves matter, fr fr:
- it writes the dirty inodes β like, flushes them out βοΈ
- and it waits on them β it does not just fire and forget, it stays there until they're done π§
and it only touches inodes that belong to this super_block. not the neighbours, not the other filesystems, just hers. main character energy, honestly. π
π«Ά little reminder that "dirty" here is a whole technical thing (inodes with unsaved changes pending) β not a judgement on the inode's hygiene. she's doing great.
π SEE ALSO π
so you wanna go deeper? periodt, let's go β here's the whole squad, all in the 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)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)write_inode_now(9)sync_inode_metadata(9)
iykyk β that's a lot of writeback friends, and they all live together in ./fs/fs-writeback.c. go say hi. π
and that's the page!! β¨ sign-off time: this lil manual page comes from <pink>./fs</pink>, dated <pink>October 2026</pink>, and it's filed under sync_inodes_sb(9) in the Kernel API Manual. slay, go sync some inodes, and remember β write and wait. π
π
π¦ 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