gfs2_fitrim(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

gfs2_fitrim(9) πŸ¦‹βœ¨

okay so this page comes from the Kernel API Manual, bestie, and we’re talking about gfs2_fitrim. It’s giving β€œgenerate discard requests for unused bits of the filesystem” energy. No cap, that’s literally the whole NAME vibe. πŸ’…

🌸 NAME 🌸

gfs2_fitrim β€” generates discard requests for unused bits of the filesystem. Periodt. πŸŽ€

✨ SYNOPSIS ✨

int gfs2_fitrim (struct file *filp , void __user *argp );

That’s the signature, exactly as it is β€” we do not mess with code. πŸ”₯

πŸŽ€ ARGUMENTS πŸŽ€

  • filp β€” any file on the filesystem. Not a specific one, just any file, bestie.
  • argp β€” pointer to the arguments, and it’s also used to pass the result. So it’s doing double duty β€” iconic. ✨

πŸ’– RETURN πŸ’–

0 on success. Otherwise? An error code. That’s it, that’s the tea. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file is ./fs/gfs2/rgrp.c, and here’s the whole bestie squad β€” every single one, no skips:


that’s the whole page, bestie. Source/version: ./fs/gfs2 Β· Date: October 2026 β€” slay, periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from