writeback_inodes_sb_nr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… writeback_inodes_sb_nr(9) β€” like, the Kernel API Manual, bestie

okay so this is writeback_inodes_sb_nr from the kernel API manual, and we're gonna get into it ✨ no cap.


🌸 NAME 🌸

writeback_inodes_sb_nr β€” writeback dirty inodes from a given super_block. that's the whole vibe, that's the assignment πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

void writeback_inodes_sb_nr (struct super_block *sb , unsigned long nr ,
enum wb_reason reason );

like, look at her. iconic signature. no notes πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sb β€” the superblock. the main character of this whole situation, fr fr.
  • nr β€” the number of pages to write. that's the ask, that's the dream πŸ’«
  • reason β€” the reason why some writeback work got initiated. yes we're documenting the why, we're being thorough, we're that girl 🫢

✨ DESCRIPTION ✨

so basically you start writeback on some inodes on this super_block. and like β€” and this is the important part, bestie, don't skip it β€” no guarantees are made on how many (if any) will be written. could be a lot, could be zero, could be a whole vibe. πŸ™ˆ and ALSO, this function does not wait for IO completion of submitted IO. it sends it and dips. it's giving "I said what I said" energy πŸ’…

lowkey important: it's fire-and-forget. do not assume anything actually got written, and do not assume anything is done when it returns. periodt.

🌈 SEE ALSO 🌈

the kernel file ./fs/fs-writeback.c, plus literally all of these besties:

go read them, iykyk πŸ“šπŸ’œ


and that's the page, bestie πŸŽ€ sign-off time: this one comes from the ./fs corner of the world, dated October 2026 β€” mwah, slay, go write some inodes πŸ’–βœ¨πŸ”₯

πŸ“¦ where this page comes from