Date: Thu, 16 Mar 2017 05:44:17 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315370 - head/sys/vm Message-ID: <201703160544.v2G5iHol061604@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703160544.v2G5iHol061604>