HomeFreeBSD

vm_object_coalesce(): simplify common expression

Description

vm_object_coalesce(): simplify common expression

Add the next_end variable to replace commonly occuring the
next_pindex + next_size expression.

Suggested by: alc
Reviewed by: alc, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D54263

Details

Provenance
kibAuthored on Dec 18 2025, 10:14 PM
Reviewer
alc
Differential Revision
D54263: vm_object_coalesce(): do not account holes twice
Parents
rGefcb109940ca: vm_object_coalesce(): remove commented out code
Branches
Unknown
Tags
Unknown