On Wed, Mar 20, 2013 at 09:14:37PM -0400, Rick Macklem wrote:
> Well, read/write sharing of files over NFS is pretty rare, so I suspect
> a truncation of a file by another client (or locally in the NFS server)
> is a rare event. As such, not invalidating the buffers here doesn't seem
> like a big issue? (The client uses np->n_size to determine EOF.)
> 
> Also, I think close-to-open consistency will typically throw away the
> buffers on the next open when it sees the mtime changed. (Yes, there
> won't necessarily be another open, but...)
nfs buffers are VMIO. Each VMIO buffer wires the pages it references.
Wired pages cannot be freed by vnode_pager_setsize() if the file is
truncated.

Attachment: pgpOJM_BO3RwF.pgp
Description: PGP signature



Reply via email to