Date: Tue, 2 Feb 2016 19:29:29 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r295160 - stable/7/sys/kern Message-ID: <201602021929.u12JTTaS023082@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Tue Feb 2 19:29:29 2016 New Revision: 295160 URL: https://svnweb.freebsd.org/changeset/base/295160 Log: Return the timestamps from the corresponding namecache entry on a negative namecache hit. This was ommitted due to a merging error in r238913. The effect was to usually break caching of negative name lookups in the NFS client. Submitted by: bde Modified: stable/7/sys/kern/vfs_cache.c Modified: stable/7/sys/kern/vfs_cache.c ============================================================================== --- stable/7/sys/kern/vfs_cache.c Tue Feb 2 19:04:40 2016 (r295159) +++ stable/7/sys/kern/vfs_cache.c Tue Feb 2 19:29:29 2016 (r295160) @@ -530,6 +530,7 @@ negative_success: nchstats.ncs_neghits++; if (ncp->nc_flag & NCF_WHITE) cnp->cn_flags |= ISWHITEOUT; + cache_out_ts(ncp, tsp, ticksp); CACHE_UNLOCK(); return (ENOENT);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602021929.u12JTTaS023082>