deactivate_super(9)
β¨ deactivate_super β kernel API manual energy β¨
Okay so bestie, we're in the Kernel API Manual today and the page is literally called deactivate_super(9). Come sit, this one's short and sweet π
π NAME π
deactivate_super β drop an active reference to superblock
Like, you're letting go of a reference. That's the whole vibe. π¦
β¨ SYNOPSIS β¨
void deactivate_super (struct super_block *s );
That's it. That's the whole signature. No cap. π
πΈ ARGUMENTS πΈ
sβ the superblock you want to deactivate. The one catching feelings. The one you're releasing. π
π DESCRIPTION π
So deactivate_super is a variant of deactivate_locked_super, right β but with one iconic little plot twist: the superblock is not locked by the caller. Nope. Not your job. Not today. π
And here's the part that matters: if we're about to drop the final active reference, the lock will be acquired prior to that. So the locking still happens β it just happens on the function's terms, not yours. Main character energy fr fr. β¨
Lowkey the whole point: you don't bring a lock to this function. It handles that itself when it needs to. π«Ά
π SEE ALSO π
Kernel file ./fs/super.c β and like, the whole extended friend group:
super_lock(9)alloc_super(9)deactivate_locked_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)
That's the page, bestie β go drop that reference responsibly π
Sign-off szn: this one lives in ./fs, dated October 2026, and it's filed under deactivate_super(9) in the Kernel API Manual. 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