Date: Tue, 15 Nov 2016 03:43:11 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r308667 - head/sys/kern Message-ID: <201611150343.uAF3hBb6043091@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611150343.uAF3hBb6043091>