summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-04-06 21:11:08 +0000
committerjhb <jhb@FreeBSD.org>2009-04-06 21:11:08 +0000
commitd6565365e4401f99dcffd2a17385d30dfeb79e68 (patch)
tree5e08b13a6dd5b15ec4434f2c646d5ecce89ada39 /sys/nfsclient/nfs.h
parenta546a149d5469466b14bd22e921ecf3ce824203a (diff)
downloadFreeBSD-src-d6565365e4401f99dcffd2a17385d30dfeb79e68.zip
FreeBSD-src-d6565365e4401f99dcffd2a17385d30dfeb79e68.tar.gz
When a stale file handle is encountered, purge all cached information about
an NFS node including the access and attribute caches. Previously the NFS client only purged any name cache entries associated with the file. PR: kern/123755 Submitted by: Jaakko Heinonen jh of saunalahti fi Reported by: Timo Sirainen tss of iki fi Reviewed by: rwatson, rmacklem MFC after: 1 month
Diffstat (limited to 'sys/nfsclient/nfs.h')
-rw-r--r--sys/nfsclient/nfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h
index df93952..4dce2fe 100644
--- a/sys/nfsclient/nfs.h
+++ b/sys/nfsclient/nfs.h
@@ -322,6 +322,7 @@ void nfs_down(struct nfsreq *, struct nfsmount *, struct thread *,
#endif /* ! NFS4_USE_RPCCLNT */
#endif
+void nfs_purgecache(struct vnode *);
int nfs_vinvalbuf(struct vnode *, int, struct thread *, int);
int nfs_readrpc(struct vnode *, struct uio *, struct ucred *);
int nfs_writerpc(struct vnode *, struct uio *, struct ucred *, int *,
OpenPOWER on IntegriCloud