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;
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to