Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2019 18:25:41 +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: r350182 - head/sys/vm
Message-ID:  <201907201825.x6KIPfK0022146@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sat Jul 20 18:25:41 2019
New Revision: 350182
URL: https://svnweb.freebsd.org/changeset/base/350182

Log:
  Rename vm_page_{import,release}() to vm_page_zone_{import,release}().
  
  I would like to use the name vm_page_release() for a different purpose,
  and vm_page_{import,release}() are local to vm_page.c.
  
  Reviewed by:	kib
  MFC after:	1 week

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c	Sat Jul 20 18:22:01 2019	(r350181)
+++ head/sys/vm/vm_page.c	Sat Jul 20 18:25:41 2019	(r350182)
@@ -168,9 +168,9 @@ static int vm_page_reclaim_run(int req_class, int doma
     vm_page_t m_run, vm_paddr_t high);
 static int vm_domain_alloc_fail(struct vm_domain *vmd, vm_object_t object,
     int req);
-static int vm_page_import(void *arg, void **store, int cnt, int domain,
+static int vm_page_zone_import(void *arg, void **store, int cnt, int domain,
     int flags);
-static void vm_page_release(void *arg, void **store, int cnt);
+static void vm_page_zone_release(void *arg, void **store, int cnt);
 
 SYSINIT(vm_page, SI_SUB_VM, SI_ORDER_SECOND, vm_page_init, NULL);
 
@@ -210,7 +210,7 @@ vm_page_init_cache_zones(void *dummy __unused)
 			pgcache->pool = pool;
 			pgcache->zone = uma_zcache_create("vm pgcache",
 			    sizeof(struct vm_page), NULL, NULL, NULL, NULL,
-			    vm_page_import, vm_page_release, pgcache,
+			    vm_page_zone_import, vm_page_zone_release, pgcache,
 			    UMA_ZONE_MAXBUCKET | UMA_ZONE_VM);
 			(void)uma_zone_set_maxcache(pgcache->zone, 0);
 		}
@@ -2208,7 +2208,7 @@ again:
 }
 
 static int
-vm_page_import(void *arg, void **store, int cnt, int domain, int flags)
+vm_page_zone_import(void *arg, void **store, int cnt, int domain, int flags)
 {
 	struct vm_domain *vmd;
 	struct vm_pgcache *pgcache;
@@ -2231,7 +2231,7 @@ vm_page_import(void *arg, void **store, int cnt, int d
 }
 
 static void
-vm_page_release(void *arg, void **store, int cnt)
+vm_page_zone_release(void *arg, void **store, int cnt)
 {
 	struct vm_domain *vmd;
 	struct vm_pgcache *pgcache;



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