From owner-cvs-src-old@FreeBSD.ORG Thu Feb 19 22:30:07 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B45C106566C for ; Thu, 19 Feb 2009 22:30:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 672638FC12 for ; Thu, 19 Feb 2009 22:30:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1JMU76R039812 for ; Thu, 19 Feb 2009 22:30:07 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1JMU7bc039811 for cvs-src-old@freebsd.org; Thu, 19 Feb 2009 22:30:07 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200902192230.n1JMU7bc039811@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Thu, 19 Feb 2009 22:28:48 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern vfs_cache.c src/sys/nfsclient nfs_vnops.c nfsnode.h src/sys/sys vnode.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2009 22:30:08 -0000 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