ENUM FREEZE_HOLDER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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