svn commit: r363855 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Tue Aug 4 19:52:52 UTC 2020


Author: mjg
Date: Tue Aug  4 19:52:52 2020
New Revision: 363855
URL: https://svnweb.freebsd.org/changeset/base/363855

Log:
  cache: add missing numcache detrement on insertion failure

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c	Tue Aug  4 19:52:16 2020	(r363854)
+++ head/sys/kern/vfs_cache.c	Tue Aug  4 19:52:52 2020	(r363855)
@@ -2001,6 +2001,7 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, 
 	return;
 out_unlock_free:
 	cache_enter_unlock(&cel);
+	atomic_add_long(&numcache, -1);
 	cache_free(ncp);
 	return;
 }


More information about the svn-src-all mailing list