HomeFreeBSD

uma: allow uma_zfree_pcu(..., NULL)

Description

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

(cherry picked from commit b8f7267d499c8ef8e70b021879d3e9e087ecc32d)

Details

Provenance
kpAuthored on Mar 10 2021, 2:11 PM
Differential Revision
D29189: uma: allow uma_zfree_pcu(..., NULL)
Parents
rG2001c1a0d2c0: pf: Remove redundant kif != NULL checks
Branches
Unknown
Tags
Unknown