sb_end_intwrite(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🧚:

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