ENUM FREEZE_HOLDER(9)
π enum freeze_holder (9) β Kernel API Manual
okay bestie, buckle up, because today we're learning about enum freeze_holder, which is exactly what it sounds like: the holder of the freeze π§π
β¨ NAME β¨
enum freeze_holder β holder of the freeze
π SYNOPSIS π
enum freeze_holder {
FREEZE_HOLDER_KERNEL ,
FREEZE_HOLDER_USERSPACE ,
FREEZE_MAY_NEST ,
FREEZE_EXCL
};
πΈ CONSTANTS πΈ
FREEZE_HOLDER_KERNELβ the kernel is the one who wants to freeze or thaw the filesystem π₯FREEZE_HOLDER_USERSPACEβ no, it's userspace who wants to freeze or thaw the filesystem πββοΈFREEZE_MAY_NESTβ says whether nesting freeze and thaw requests is allowed πͺFREEZE_EXCLβ a freeze that can only be undone by the owner π (very exclusive, very main character energy)
π¦ DESCRIPTION π¦
So this whole enum is basically a little name tag π·οΈ β it tells you who the owner of the freeze or thaw request is, and whether that freeze needs to be exclusive or if it's allowed to nest.
Here's the tea: without FREEZE_MAY_NEST, multiple freeze and thaw requests from the same holder aren't allowed. nope. not happening. π
ββοΈ
But β and this is the cute part β it is allowed to hold a single FREEZE_HOLDER_USERSPACE and a single FREEZE_HOLDER_KERNEL freeze at the same time. the way that works out π some filesystems literally rely on this during online repair or similar. so yeah, it's giving teamwork, it's giving coexistence, periodt. β¨
π₯ SEE ALSO π₯
Kernel file ./include/linux/fs/super_types.h
ngl, that's the whole page β short, sweet, and honestly iconic ππ
made with love from ./include/linux/fs, October 2026 β mwah, go forth and freeze responsibly π«ΆπΈ
π¦ 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