Date: Thu, 19 Feb 2009 22:28:48 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern vfs_cache.c src/sys/nfsclient nfs_vnops.c nfsnode.h src/sys/sys vnode.h Message-ID: <200902192230.n1JMU7bc039811@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-02-19 22:28:48 UTC FreeBSD src repository Modified files: sys/kern vfs_cache.c sys/nfsclient nfs_vnops.c nfsnode.h sys/sys vnode.h Log: SVN rev 188833 on 2009-02-19 22:28:48Z by jhb Enable caching of negative pathname lookups in the NFS client. To avoid stale entries, we save a copy of the directory's modification time when the first negative cache entry was added in the directory's NFS node. When a negative cache entry is hit during a pathname lookup, the parent directory's modification time is checked. If it has changed, all of the negative cache entries for that parent are purged and the lookup falls back to using the RPC. This required adding a new cache_purge_negative() method to the name cache to purge only negative cache entries for a given directory. Submitted by: mohans, Rick Macklem, Ricardo Labiaga @ NetApp Reviewed by: mohans Revision Changes Path 1.136 +18 -0 src/sys/kern/vfs_cache.c 1.300 +53 -8 src/sys/nfsclient/nfs_vnops.c 1.64 +1 -0 src/sys/nfsclient/nfsnode.h 1.348 +1 -0 src/sys/sys/vnode.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902192230.n1JMU7bc039811>