gfs2_dir_exhash_dealloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« gfs2_dir_exhash_dealloc(9) πŸ’«

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's a lil kernel-function page from the gfs2 filesystem, and honestly? it's a whole vibe. it does exactly one job and it does it iconically. let's get into it 🫢


🌸 NAME 🌸

gfs2_dir_exhash_dealloc β€” frees all the leaf blocks in a directory. that's it. that's the function. she's a deleter, a liberator, a leaf-block-clearing queen πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

int gfs2_dir_exhash_dealloc (struct gfs2_inode *dip );

one argument, one int coming back at you. lowkey elegant ngl πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dip β€” the directory. like, the directory inode itself. that's the whole parameter, bestie, she's not complicated 🌈

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜• β€” this function deallocates all the on-disk directory leaves, setting them to the FREEMETA state. free them, release them, let them go, periodt πŸ’€

and then (this is the main character plot twist ✨) it changes the on-disk inode type to "regular file" β€” yes, in quotes in the original, and yes we're keeping the quotes, fr fr. so a directory literally becomes a regular file. it's giving transformation arc 🧚

ngl it's doing in-place on-disk surgery here β€” leaves β†’ FREEMETA, inode type β†’ "regular file". just so we're all clear on what's being written where 😭

⭐ RETURN ⭐

returns errno. that's it. that's the return value. classic 🎯


πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the part where we tag everyone in the group chat πŸ’– the whole kernel file lives at ./fs/gfs2/dir.c and here's the full squad:

no cap, that's the whole crew. go read them too, iykyk 🌸


and that's the page, bestie!! πŸŽ€ this lil beauty lives under ./fs/gfs2 and the manual's dated October 2026 β€” so yeah, future-dated kernel docs, we love to see it ⏰✨ mwah, stan a filesystem function that knows what it wants πŸ’œπŸ¦‹

πŸ“¦ where this page comes from