cache: add missing numcache detrement on insertion failure
This commit is contained in:
parent
3211e783e3
commit
0311b05fec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363855
@ -2001,6 +2001,7 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, struct componentname *cnp,
|
||||
return;
|
||||
out_unlock_free:
|
||||
cache_enter_unlock(&cel);
|
||||
atomic_add_long(&numcache, -1);
|
||||
cache_free(ncp);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user