HomeFreeBSD

vm_phys_enqueue_contig: handle npages==0

Description

vm_phys_enqueue_contig: handle npages==0

By letting vm_phys_enqueue_contig handle the case when npages == 0,
the callers can stop checking it, and the compiler can stop
zero-checking with every call to ffs(). Letting vm_phys_enqueue_contig
call vm_phys_enqueue_contig for part of its work also saves a few
bytes.

The amd64 object code shrinks by 80 bytes.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D41154

Details

Provenance
dougmAuthored on Aug 2 2023, 3:12 AM
Reviewer
kib
Differential Revision
D41154: vm_phys_enqueue_contig: handle zero pages
Parents
rG77f6be448408: retire SHARED_TOOLCHAIN knob
Branches
Unknown
Tags
Unknown
Reverted By
rGb7370efade86: Revert "vm_phys_enqueue_contig: handle npages==0"