nfs_revalidate_file_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is the nfs_revalidate_file_size(9) page from the Kernel API Manual, and the name is literally:

  • nfs_revalidate_file_size β€” Revalidate the file size. That's it, that's the vibe. πŸ’…

✨ SYNOPSIS ✨

the signature is exactly this, no cap:

int nfs_revalidate_file_size (struct inode *inode , struct file *filp );

πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” pointer to inode struct. Yep, that's the inode pointer.
  • filp β€” pointer to struct file. The file pointer, slay.

πŸ’… DESCRIPTION πŸ’…

It revalidates the file length. Basically it's a wrapper around nfs_revalidate_inode, but with two big-brain exceptions baked in:

  • if we may have cached writes, we don't care about the server's idea of what the file length is β€” like, not even a little.
  • if it's O_DIRECT, we shouldn't trust the cache. Periodt.

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./fs/nfs/file.c β€” go peek, iykyk.

πŸ’– and that's the page! source ./fs/nfs, dated October 2026, for nfs_revalidate_file_size(9) β€” bye bestie, you ate 🫢

πŸ“¦ where this page comes from