]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
uma: allow uma_zfree_pcu(..., NULL)
authorKristof Provost <kp@FreeBSD.org>
Wed, 10 Mar 2021 14:11:59 +0000 (15:11 +0100)
committerKristof Provost <kp@FreeBSD.org>
Fri, 12 Mar 2021 11:12:35 +0000 (12:12 +0100)
commitb8f7267d499c8ef8e70b021879d3e9e087ecc32d
tree2aced3490a81d7e4cae30a982d84f4b068cdfcdb
parentaaf998056ed46c0dfb429e3e5cfe624c8aa4dec8
uma: allow uma_zfree_pcu(..., NULL)

We already allow free(NULL) and uma_zfree(..., NULL). Make
uma_zfree_pcpu(..., NULL) work as well.
This also means that counter_u64_free(NULL) will work.

These make cleanup code simpler.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D29189
sys/vm/uma_core.c