nfs_revalidate_file_size(9)
πΈ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms