deactivate_locked_super(9)
π deactivate_locked_super β Kernel API Manual β¨
okay so bestie, we're in deactivate_locked_super(9) territory and honestly? it's giving "small function, big responsibility." stay with me π«Ά
β¨ NAME β¨
deactivate_locked_super β drop an active reference to superblock π
πΈ SYNOPSIS πΈ
void deactivate_locked_super (struct super_block *s );
like, that's the whole vibe. void return, one pointer in, no cap π
π¦ ARGUMENTS π¦
sβ the superblock you're deactivating. that's it. that's the argument. she's the main character here π
π₯ DESCRIPTION π₯
So here's what happens, bestie. This function drops an active reference to the superblock, and β plot twist β it converts that into a temporary one if there are no other active references left. lowkey iconic behaviour tbh π
In that case (the "no other active references left" case, iykyk), we tell the fs driver to shut it down, and then we drop the temporary reference we had just acquired. the way that it cleans up after itself?? obsessed π
β οΈ important, don't skip this part: the caller holds an exclusive lock on the superblock β and that lock is released by this function. so don't go thinking you still have it afterward, because you literally don't π
π SEE ALSO π
Kernel file ./fs/super.c β go read it, it ate β
super_lock(9)alloc_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)thaw_super(9)
and that's the whole page, bestie β no crumbs left π this one came from ./fs, dated October 2026, and yes the header said deactivate_locked_super(9) like three times because manpages are dramatic like that π slay, go touch some superblocks (carefully, and with the lock situation in mind) π§π
π¦ 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