gfs2_drevalidate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 gfs2_drevalidate (9) β€” from the Kernel API Manual, bestie πŸ’…

okay so we're in the kernel API manual today and this page is about gfs2_drevalidate. it's short, it's sweet, and it's lowkey doing important work for GFS2 β€” let's get into it ✨


✨ SYNOPSIS ✨

int gfs2_drevalidate (struct inode *dir , const struct qstr *name ,
       struct dentry *dentry , unsigned int flags );

that's the whole vibe β€” one function, four args, returns an int. slay πŸŽ€


🫢 ARGUMENTS 🫢

  • dir β€” the parent directory inode you're expecting this thing to come from. like, the address you think it lives at 🏠
  • name β€” the name you expect (the page literally spells it "expexted name" and honestly? we're keeping it, typos are iconic πŸ’€)
  • dentry β€” the dentry that's getting the vibe check
  • flags β€” the lookup flags. yep, just... flags 🚩

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜• β€” this function checks that the lookup you'd need to do to get from this inode's parent all the way down to this inode still holds up. like, is the path you used to find this thing still valid? is the directory consistency still giving? if the lookup no longer checks out, this is where you find out πŸ‘€

it's a consistency check, not a fanciness check. no cap πŸ’œ


⭐ RETURN ⭐

  • 1 β€” the dentry is ok βœ… it passed the vibe check
  • 0 β€” it isn't 😭

that's it. binary. no in-between. periodt πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

  • the kernel file ./fs/gfs2/dentry.c β€” go read the source, iykyk πŸ“–

lowkey reminder: this one's a kernel-internal API page, so the "see also" is literally just the source file. that's not me being lazy, that's the whole reference 🧚

and that's the page!! πŸ“ source location ./fs/gfs2, dated October 2026, kernel API manual β€” big thanks to the GFS2 girlies for keeping our dentries honest, muah πŸ’–πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from