nfs_force_lookup_revalidate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to nfs_force_lookup_revalidate(9) from the Kernel API Manual β€” this is the page that's literally about telling NFS β€œbestie, the directory changed” πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

nfs_force_lookup_revalidate β€” Mark the directory as having changed πŸ’–

🌸 SYNOPSIS 🌸

void nfs_force_lookup_revalidate (struct inode *dir );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dir β€” pointer to directory inode. That's the whole vibe: you hand it the directory inode and it does its thing 🫢

✨ DESCRIPTION ✨

So here's the tea: this function forces the revalidation code in nfs_lookup_revalidate to do a full lookup on all child dentries of dir whenever a change occurs on the server that might have invalidated our dcache. It's giving β€œserver said something shifted, so we gotta double-check the whole friend group” πŸ”₯

Also important, no cap: bit '0' is reserved as a tag to let us know when a dentry was revalidated while holding a delegation on its inode. Iconic little bookkeeping moment πŸ’…

The caller should be holding dir->i_lock β€” fr fr, hold the lock before you call this, bestie πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


cute sign-off: source/version ./fs/nfs, date October 2026, page nfs_force_lookup_revalidate(9) β€” k bye bestie, go revalidate those dentries πŸ’–βœ¨

πŸ“¦ where this page comes from