HomeFreeBSD

vm_map: Simplify a call to vm_object_allocate_anon()

Description

vm_map: Simplify a call to vm_object_allocate_anon()

vm_object_allocate_anon() automatically sets "charge" to 0 if no cred
reference is provided, so the caller doesn't need any conditional logic.

No functional change intended.

Reviewed by: alc, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35781

Details

Provenance
markjAuthored on Jul 12 2022, 12:53 PM
Reviewer
alc
Differential Revision
D35781: vm_map: Simplify a call to vm_object_allocate_anon()
Parents
rGe1979b45b637: vm_object: Assert that overcommit charge is released in the object dtor
Branches
Unknown
Tags
Unknown