HomeFreeBSD

vm_reserv: clarify reserv_from_object

Description

vm_reserv: clarify reserv_from_object

vm_reserv_from_page returns an existing reservation, or initializes a
successor pointer, or both. If it returns an existing reservation,
callers will ignore the successor pointer, initialized or not, so
initializing it serves no purpose. So, don't initialize it in that
case, and make less ambiguous the comment that describes the
function's behavior.

Reviewed by: markj, kib, alc
Differential Revision: https://reviews.freebsd.org/D49415

Details

Provenance
dougmAuthored on Mar 24 2025, 3:19 AM
Reviewer
markj
Differential Revision
D49415: vm_reserv: clarify reserv_from_object
Parents
rG10626f7384f9: gcore(1): dump NT_PROCSTAT_KQUEUES section
Branches
Unknown
Tags
Unknown