]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Define macro VM_MAP_ENTRY_FOREACH for enumerating the entries in a vm_map.
authordougm <dougm@FreeBSD.org>
Tue, 8 Oct 2019 07:14:21 +0000 (07:14 +0000)
committerdougm <dougm@FreeBSD.org>
Tue, 8 Oct 2019 07:14:21 +0000 (07:14 +0000)
commit918670a5ed80338daea27cde4f58668164c8b676
tree19f46dd5e011807e8b7bd0ea7e906d8ae57a261d
parent99d24ccb5ea77d169847781256856f6ae72f386d
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
13 files changed:
sys/compat/linprocfs/linprocfs.c
sys/dev/hwpmc/hwpmc_mod.c
sys/fs/procfs/procfs_map.c
sys/fs/tmpfs/tmpfs_vfsops.c
sys/kern/imgact_elf.c
sys/kern/kern_proc.c
sys/kern/sys_process.c
sys/security/mac/mac_process.c
sys/vm/swap_pager.c
sys/vm/vm_map.h
sys/vm/vm_object.c
sys/vm/vm_pageout.c
sys/vm/vm_swapout.c