try_rgrp_unlink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we're in the Kernel API Manual and today's main character is try_rgrp_unlink(9). yes the whole page is about one function, and yes it's iconic. let's get into it ✨


✨ NAME ✨

try_rgrp_unlink β€” literally goes looking for any unlinked, allocated, but unused inodes πŸ”πŸ‘‘

like. the trinity of "why is this still here". no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

void try_rgrp_unlink (struct gfs2_rgrpd *rgd , u64 *last_unlinked , u64
skip );

that's the whole signature, copy it exactly, don't be cute with it 🫢


🌸 ARGUMENTS 🌸

  • rgd β€” the rgrp. that's it, that's the description. it's giving "minimalist icon" πŸ’…
  • last_unlinked β€” the block address of the last dinode we unlinked. the "where we left off" of it all πŸŽ€
  • skip β€” a block address we should explicitly not unlink. hands off, bestie πŸ™ˆ

πŸ’œ RETURN πŸ’œ

0 if no error. and the inode, if one has been found, in inode. πŸ‘‘ (yes, inode β€” that's what the page says, we don't editorialize, we just report 🫑)


🌈 SEE ALSO 🌈

the friend group is huge, buckle up:

all of them. every single one. iykyk πŸ’€


ngl this page is short but it ate. go read rgrp.c if you want the full lore πŸ“

and that's the vibe check, bestie β€” brought to you from ./fs/gfs2, dated October 2026, filed under try_rgrp_unlink(9). slay, periodt, and don't forget to unlink responsibly πŸ§šπŸ’–

πŸ“¦ where this page comes from