svn commit: r323800 - stable/11/sys/vm

Konstantin Belousov kib at FreeBSD.org
Wed Sep 20 08:51:04 UTC 2017


Author: kib
Date: Wed Sep 20 08:51:03 2017
New Revision: 323800
URL: https://svnweb.freebsd.org/changeset/base/323800

Log:
  MFC r323558:
  Use existing tag name for the vm_object' memq.

Modified:
  stable/11/sys/vm/vm_object.h
  stable/11/sys/vm/vm_page.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vm_object.h
==============================================================================
--- stable/11/sys/vm/vm_object.h	Wed Sep 20 08:45:42 2017	(r323799)
+++ stable/11/sys/vm/vm_object.h	Wed Sep 20 08:51:03 2017	(r323800)
@@ -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: stable/11/sys/vm/vm_page.h
==============================================================================
--- stable/11/sys/vm/vm_page.h	Wed Sep 20 08:45:42 2017	(r323799)
+++ stable/11/sys/vm/vm_page.h	Wed Sep 20 08:51:03 2017	(r323800)
@@ -209,7 +209,10 @@ struct vm_page {
 #define	PQ_LAUNDRY	2
 #define	PQ_COUNT	3
 
+#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