sb_write_not_started(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sb_write_not_started(9) πŸ’…

okay bestie, so this one is a kernel API manual page β€” yes, that Kernel API Manual β€” and it's literally the littlest vibe-check function you've ever seen. It answers one (1) question and then goes back to bed. Let's get into it 🫢


✨ NAME ✨

sb_write_not_started β€” checks if SB_FREEZE_WRITE is not held. that's it. that's the whole job. iconic honestly πŸ‘‘


🌸 SYNOPSIS 🌸

bool sb_write_not_started (const struct super_block *sb );

like, you hand it a superblock and it hands you back a bool. a little transactional queen 🀝


πŸŽ€ ARGUMENTS πŸŽ€

  • sb β€” the super we write to πŸ’– (yep, this is the superblock you're asking about, no cap)

πŸ¦‹ DESCRIPTION πŸ¦‹

sooooo the function checks whether SB_FREEZE_WRITE is not held, and yeah β€” that's the entire plot.

⚠️ but bestie, important caveat, do not skip this: it may be a false positive with !CONFIG_LOCKDEP/LOCK_STATE_UNKNOWN. so if lockdep is off or the lock state is unknown, don't come for her, she did her best 😭

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./include/linux/fs/super.h and all her siblings in the freeze-adjacent friend group β€” collect them all πŸ”₯

honestly a whole squad, main character energy all around πŸ’œ


and that's the page, bestie! πŸ“ this lil writeup lives in ./include/linux/fs and it's dated October 2026, so go forth, check your freeze state, and slay βœ¨πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from