]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify anonymous memory handling with an OBJ_ANON flag. This eliminates
authorjeff <jeff@FreeBSD.org>
Tue, 19 Nov 2019 23:19:43 +0000 (23:19 +0000)
committerjeff <jeff@FreeBSD.org>
Tue, 19 Nov 2019 23:19:43 +0000 (23:19 +0000)
commitbe1b482c07897d66685cb66054f7259a13ac7c93
tree3bfb29066fa50fcb2b86567ff8c75c693d8f0cf2
parent91df212e3f63b82f4f7e2477f3f92225b54e9a46
Simplify anonymous memory handling with an OBJ_ANON flag.  This eliminates
reudundant complicated checks and additional locking required only for
anonymous memory.  Introduce vm_object_allocate_anon() to create these
objects.  DEFAULT and SWAP objects now have the correct settings for
non-anonymous consumers and so individual consumers need not modify the
default flags to create super-pages and avoid ONEMAPPING/NOSPLIT.

Reviewed by: alc, dougm, kib, markj
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D22119
sys/fs/tmpfs/tmpfs_subr.c
sys/kern/sysv_shm.c
sys/kern/uipc_shm.c
sys/vm/swap_pager.c
sys/vm/vm_fault.c
sys/vm/vm_map.c
sys/vm/vm_meter.c
sys/vm/vm_object.c
sys/vm/vm_object.h
sys/vm/vm_reserv.c