sb_end_intwrite(9)
π sb_end_intwrite(9) β Kernel API Manual, bestie edition π
okay so welcome to the sb_end_intwrite page, section 9 of the Kernel API Manual, and honestly? bestie, this one is short and sweet but it's important, so pay attention π
β¨ NAME β¨
sb_end_intwrite β drop write access to a superblock for internal fs purposes π¦
like, you had write access. now you don't. slay.
πΈ SYNOPSIS πΈ
void sb_end_intwrite (struct super_block *sb );
no return value, no drama, she just does the thing π
π«Ά ARGUMENTS π«Ά
sbβ the super we wrote to π (yes, "the super". that's the superblock. she's the main character here.)
π₯ DESCRIPTION π₯
so what actually happens? Decrement fs-internal number of writers to the filesystem. that's it, that's the whole gig β you're checking out of the internal-writer club, one fewer name on the list β¨
and then the cute part: Wake up possible waiters wanting to freeze the filesystem. like, there might be someone literally waiting to freeze this filesystem, and your little decrement is their cue π so if you skipped this call, those waiters would just be sitting there, waiting, and the freeze would never come. not cute. not the vibe. do your decrement. π
π¦ SEE ALSO π¦
the whole superblock-write-access friend group, all hanging out in the kernel file ./include/linux/fs/super.h π§:
__sb_write_started(9)sb_write_started(9)sb_write_not_started(9)sb_end_write(9)sb_end_pagefault(9)sb_start_write(9)sb_start_pagefault(9)sb_start_intwrite(9)
iykyk π
and that's the page!! this icon came from ./include/linux/fs, dated October 2026, and it's filed under sb_end_intwrite(9) β go forth, end those intwrites, wake those waiters, periodt πΈππ
π¦ 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