thaw_super(9)
π thaw_super β unlock the filesystem, bestie π
Okay so real talk: this is thaw_super from the Kernel API Manual β the literal glow-up page for <hotpink>thaw_super(9)</hotpink>. It's the un-freeze. The defrost. The "we're so back" moment for a filesystem that got iced. π§β‘οΈπ₯
β¨ SYNOPSIS β¨
int thaw_super (struct super_block *sb , enum freeze_holder who , const
void *freeze_owner );
Yes bestie, that's the whole signature β three args, one int return, no cap. π
π«Ά ARGUMENTS π«Ά
sbβ the super to thaw. Like, the actualsuper_blockwe're bringing back to life. πΈwhoβ the context that wants to freeze. Yep, the freeze-holder vibe check. πfreeze_ownerβ the owner of the freeze. Gotta know whose freeze this is, fr fr. π
π¦ DESCRIPTION π¦
So here's the tea: this unlocks the filesystem and marks it writeable again after freeze_super, if there are no remaining freezes on the filesystem. Key word: if. Don't come for me if you skipped that part. π
The who argument should be:
FREEZE_HOLDER_USERSPACEβ if userspace wants to thaw the fs; πFREEZE_HOLDER_KERNELβ if the kernel wants to thaw the fs. πFREEZE_MAY_NESTβ whether nesting freeze and thaw requests is allowed. πͺβ¨
And here's the part that lowkey matters a lot: a filesystem may hold multiple devices, and thus a filesystem may have been frozen through the block layer via multiple block devices. The filesystem remains frozen until all block devices are unfrozen. All of them. Every single one. No partial slay. π
So if you thaw one device and think you're done? Not me being the bearer of bad news, but nope β she stays frozen until the whole squad is unfrozen. π§π«Ά
π SEE ALSO π
Kernel file ./fs/super.c β plus the whole friend group:
super_lock(9)alloc_super(9)deactivate_locked_super(9)deactivate_super(9)grab_super(9)retire_super(9)generic_shutdown_super(9)sget_fc(9)iterate_supers_type(9)reconfigure_super(9)emergency_thaw_all(9)get_anon_bdev(9)sget_dev(9)fs_bdev_freeze(9)fs_bdev_thaw(9)fs_bdev_file_open_by_dev(9)fs_bdev_file_open_by_path(9)fs_bdev_unregister(9)fs_bdev_file_release(9)get_tree_bdev_flags(9)get_tree_bdev(9)vfs_get_tree(9)sb_wait_write(9)freeze_super(9)
Okay that's the whole page, bestie β go thaw something responsibly. π
β¨ This lil writeup lives in ./fs, dated October 2026, and it's the thaw_super(9) entry, mwah ππ
π¦ 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