mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
This commit is contained in:
parent
cafceaebea
commit
b16e57a6c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350182
|
@ -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 @@ vm_page_alloc_freelist_domain(int domain, int freelist, int req)
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue