inode_go_inval(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… inode_go_inval πŸ’…

okay so bestie, this is inode_go_inval from the Kernel API Manual β€” and it's giving β€œprepare the glock, we're wrapping up” energy. no cap, let's go πŸ’–


🌸 NAME 🌸

inode_go_inval β€” prepare an inode glock to be released. like, get that glock ready to be let go πŸ’…βœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

void inode_go_inval (struct gfs2_glock *gl , int flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • gl β€” the glock πŸ‘‘
  • flags β€” the original page doesn't spell this one out, bestie, so I'm not gonna invent lore πŸ™ˆ

✨ DESCRIPTION ✨

so normally? we invalidate everything β€” all of it, no crumbs πŸ’€

but there's a little exception, and it's lowkey iconic: if we are moving into LM_ST_DEFERRED from LM_ST_SHARED or LM_ST_EXCLUSIVE, then we can keep hold of the metadata, since it won't have changed. periodt 🫢

bestie, that's the whole vibe: invalidation usually goes brrr, but that one state move gets to keep the metadata because it hasn't changed. 🧚

🌈 SEE ALSO 🌈

the Kernel file is ./fs/gfs2/glops.c, and the whole squad is:


mwah πŸ’‹ sign-off time: source is ./fs/gfs2, the date line is October 2026, and the page is inode_go_inval(9) β€” catch u in the kernel docs, bestie πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from