sb_write_not_started(9)
π 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 π₯
__sb_write_started(9)sb_write_started(9)sb_end_write(9)sb_end_pagefault(9)sb_end_intwrite(9)sb_start_write(9)sb_start_pagefault(9)sb_start_intwrite(9)
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
- 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