svn commit: r226941 - user/attilio/vmcontention/sys/amd64/amd64

Jeff Roberson jeff at FreeBSD.org
Sun Oct 30 20:45:27 UTC 2011


Author: jeff
Date: Sun Oct 30 20:45:27 2011
New Revision: 226941
URL: http://svn.freebsd.org/changeset/base/226941

Log:
   - Eliminate a use of the splay right link by using the object pointer
     for a temporary singly linked list.

Modified:
  user/attilio/vmcontention/sys/amd64/amd64/pmap.c

Modified: user/attilio/vmcontention/sys/amd64/amd64/pmap.c
==============================================================================
--- user/attilio/vmcontention/sys/amd64/amd64/pmap.c	Sun Oct 30 16:29:04 2011	(r226940)
+++ user/attilio/vmcontention/sys/amd64/amd64/pmap.c	Sun Oct 30 20:45:27 2011	(r226941)
@@ -1425,7 +1425,8 @@ pmap_free_zero_pages(vm_page_t free)
 
 	while (free != NULL) {
 		m = free;
-		free = m->right;
+		free = (void *)m->object;
+		m->object = NULL;
 		/* Preserve the page's PG_ZERO setting. */
 		vm_page_free_toq(m);
 	}
@@ -1444,7 +1445,7 @@ pmap_add_delayed_free_list(vm_page_t m, 
 		m->flags |= PG_ZERO;
 	else
 		m->flags &= ~PG_ZERO;
-	m->right = *free;
+	m->object = (void *)*free;
 	*free = m;
 }
 	


More information about the svn-src-user mailing list