svn commit: r323558 - head/sys/vm

Konstantin Belousov kib at FreeBSD.org
Wed Sep 13 19:04:01 UTC 2017


Author: kib
Date: Wed Sep 13 19:03:59 2017
New Revision: 323558
URL: https://svnweb.freebsd.org/changeset/base/323558

Log:
  Use existing tag name for the vm_object' memq.
  
  Reviewed by:	alc, markj
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/vm/vm_object.h
  head/sys/vm/vm_page.h

Modified: head/sys/vm/vm_object.h
==============================================================================
--- head/sys/vm/vm_object.h	Wed Sep 13 18:32:43 2017	(r323557)
+++ head/sys/vm/vm_object.h	Wed Sep 13 19:03:59 2017	(r323558)
@@ -87,12 +87,17 @@
  *
  */
 
+#ifndef VM_PAGE_HAVE_PGLIST
+TAILQ_HEAD(pglist, vm_page);
+#define VM_PAGE_HAVE_PGLIST
+#endif
+
 struct vm_object {
 	struct rwlock lock;
 	TAILQ_ENTRY(vm_object) object_list; /* list of all objects */
 	LIST_HEAD(, vm_object) shadow_head; /* objects that this is a shadow for */
 	LIST_ENTRY(vm_object) shadow_list; /* chain of shadow objects */
-	TAILQ_HEAD(respgs, vm_page) memq; /* list of resident pages */
+	struct pglist memq;		/* list of resident pages */
 	struct vm_radix rtree;		/* root of the resident page radix trie*/
 	vm_pindex_t size;		/* Object size */
 	int generation;			/* generation ID */

Modified: head/sys/vm/vm_page.h
==============================================================================
--- head/sys/vm/vm_page.h	Wed Sep 13 18:32:43 2017	(r323557)
+++ head/sys/vm/vm_page.h	Wed Sep 13 19:03:59 2017	(r323558)
@@ -210,7 +210,10 @@ struct vm_page {
 #define	PQ_UNSWAPPABLE	3
 #define	PQ_COUNT	4
 
+#ifndef VM_PAGE_HAVE_PGLIST
 TAILQ_HEAD(pglist, vm_page);
+#define VM_PAGE_HAVE_PGLIST
+#endif
 SLIST_HEAD(spglist, vm_page);
 
 struct vm_pagequeue {


More information about the svn-src-all mailing list