HomeFreeBSD

Define macro VM_MAP_ENTRY_FOREACH for enumerating the entries in a vm_map.

Description

Define macro VM_MAP_ENTRY_FOREACH for enumerating the entries in a vm_map.
In case the implementation ever changes from using a chain of next pointers,
then changing the macro definition will be necessary, but changing all the
files that iterate over vm_map entries will not.

Drop a counter in vm_object.c that would have an effect only if the
vm_map entry count was wrong.

Discussed with: alc
Reviewed by: markj
Tested by: pho (earlier version)
Differential Revision: https://reviews.freebsd.org/D21882

Details

Committed
dougmOct 8 2019, 7:14 AM
Reviewer
markj
Differential Revision
D21882: Use a loop macro for enumerating vm map entries
Parents
rS353297: loader/powerpc64: Include generic PVR values in CAS architecture list
Branches
Unknown
Tags
Unknown