]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove the next and prev fields from vm_map_entry, to save a bit of
authorDoug Moore <dougm@FreeBSD.org>
Sat, 7 Dec 2019 17:14:33 +0000 (17:14 +0000)
committerDoug Moore <dougm@FreeBSD.org>
Sat, 7 Dec 2019 17:14:33 +0000 (17:14 +0000)
commitc1ad5342a69c9abd589d8dc471b0be49d019f22b
treee658c29146c6ca484d865f646f8bb7111a5e84bf
parent8d3443b1fc6de6b89cd6675adce6b509411a4f94
Remove the next and prev fields from vm_map_entry, to save a bit of
space.  Where the vm_map tree now has null pointers, store pointers to
next and previous entries in right and left fields, making the binary
tree threaded.  Have the predecessor and successor functions compute
what the prev and next fields previously stored.

Reviewed by: markj, kib (previous version)
Tested by: pho (previous version)
Differential Revision: https://reviews.freebsd.org/D21964
sys/vm/vm_map.c
sys/vm/vm_map.h