]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Two changes to vm_map_delete:
authoralc <alc@FreeBSD.org>
Sun, 4 Apr 1999 07:11:02 +0000 (07:11 +0000)
committeralc <alc@FreeBSD.org>
Sun, 4 Apr 1999 07:11:02 +0000 (07:11 +0000)
commitad1fbba2a904f36f2f99e3cd4eb626f2561c8360
treee5fc2dc5e9a9792f12f035a96c2400dbd17f7735
parentd352c9407063818d7ca027fe7d37282636d7fd71
Two changes to vm_map_delete:

1. Don't bother checking object->ref_count == 1 in order to set
OBJ_ONEMAPPING.  It's a waste of time.  If object->ref_count == 1,
vm_map_entry_delete will "run-down" the object and its pages.

2. If object->ref_count == 1, ignore OBJ_ONEMAPPING.  Wait for
vm_map_entry_delete to "run-down" the object and its pages.
Otherwise, we're calling two different procedures to delete
the object's pages.

Note: "vmstat -s" will once again show a non-zero value
for "pages freed by exiting processes".
sys/vm/vm_map.c