svn commit: r315370 - head/sys/vm
Xin LI
delphij at FreeBSD.org
Thu Mar 16 05:44:18 UTC 2017
Author: delphij
Date: Thu Mar 16 05:44:16 2017
New Revision: 315370
URL: https://svnweb.freebsd.org/changeset/base/315370
Log:
The adj_free and max_free values of new_entry will be calculated and
assigned by subsequent vm_map_entry_link(), therefore, remove the
pointless copying.
Submitted by: alc
MFC after: 3 days
Modified:
head/sys/vm/vm_map.c
Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c Thu Mar 16 04:58:12 2017 (r315369)
+++ head/sys/vm/vm_map.c Thu Mar 16 05:44:16 2017 (r315370)
@@ -3456,8 +3456,6 @@ vmspace_fork(struct vmspace *vm1, vm_oof
new_entry->start = old_entry->start;
new_entry->end = old_entry->end;
new_entry->avail_ssize = old_entry->avail_ssize;
- new_entry->adj_free = old_entry->adj_free;
- new_entry->max_free = old_entry->max_free;
new_entry->eflags = old_entry->eflags &
~(MAP_ENTRY_USER_WIRED | MAP_ENTRY_IN_TRANSITION |
MAP_ENTRY_VN_WRITECNT);
More information about the svn-src-all
mailing list