svn commit: r308667 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Tue Nov 15 03:43:12 UTC 2016


Author: mjg
Date: Tue Nov 15 03:43:10 2016
New Revision: 308667
URL: https://svnweb.freebsd.org/changeset/base/308667

Log:
  cache: plug a write-only variable in cache_negative_zap_one

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c	Tue Nov 15 03:40:22 2016	(r308666)
+++ head/sys/kern/vfs_cache.c	Tue Nov 15 03:43:10 2016	(r308667)
@@ -783,7 +783,7 @@ cache_negative_shrink_select(int start, 
 static void
 cache_negative_zap_one(void)
 {
-	struct namecache *ncp, *ncp2, *ncpc;
+	struct namecache *ncp, *ncp2;
 	struct neglist *neglist;
 	struct mtx *dvlp;
 	struct rwlock *blp;
@@ -791,7 +791,6 @@ cache_negative_zap_one(void)
 	if (!mtx_trylock(&ncneg_shrink_lock))
 		return;
 
-	ncpc = NULL;
 	mtx_lock(&ncneg_hot.nl_lock);
 	ncp = TAILQ_FIRST(&ncneg_hot.nl_list);
 	if (ncp != NULL) {


More information about the svn-src-head mailing list