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);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to