svn commit: r295160 - stable/7/sys/kern
John Baldwin
jhb at FreeBSD.org
Tue Feb 2 19:29:31 UTC 2016
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);
More information about the svn-src-stable
mailing list