aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-07-20 18:25:41 +0000
committerMark Johnston <markj@FreeBSD.org>2019-07-20 18:25:41 +0000
commitb16e57a6c9a4c6f4f482445766f6c83796e5cfbb (patch)
tree12b241ce8df7386d30f59c292f42878594f9627d /sys/vm/vm_page.c
parentcafceaebea0108edd3ff12c25c9cda85b807342a (diff)
downloadsrc-b16e57a6c9a4c6f4f482445766f6c83796e5cfbb.tar.gz
src-b16e57a6c9a4c6f4f482445766f6c83796e5cfbb.zip
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
Notes
Notes: svn path=/head/; revision=350182
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index b7e7d6cf6520..3d80dcda16d0 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -168,9 +168,9 @@ static int vm_page_reclaim_run(int req_class, int domain, u_long npages,
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 domain, int flags)
}
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;