Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Nov 2017 19:16:45 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326234 - head/sys/vm
Message-ID:  <201711261916.vAQJGjiJ093765@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sun Nov 26 19:16:45 2017
New Revision: 326234
URL: https://svnweb.freebsd.org/changeset/base/326234

Log:
  Remove unneeded initializations from vm_phys_init_page().
  
  The page allocator always initializes the aflags and oflags fields.
  
  Reviewed by:	alc, kib
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D13242

Modified:
  head/sys/vm/vm_phys.c

Modified: head/sys/vm/vm_phys.c
==============================================================================
--- head/sys/vm/vm_phys.c	Sun Nov 26 18:19:01 2017	(r326233)
+++ head/sys/vm/vm_phys.c	Sun Nov 26 19:16:45 2017	(r326234)
@@ -742,7 +742,7 @@ vm_phys_init_page(vm_paddr_t pa)
 	m->wire_count = 0;
 	m->busy_lock = VPB_UNBUSIED;
 	m->hold_count = 0;
-	m->flags = m->aflags = m->oflags = 0;
+	m->flags = 0;
 	m->phys_addr = pa;
 	m->queue = PQ_NONE;
 	m->psind = 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711261916.vAQJGjiJ093765>