Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_vmem.c
Show First 20 Lines • Show All 582 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
qc_drain(vmem_t *vm) | qc_drain(vmem_t *vm) | ||||
{ | { | ||||
int qcache_idx_max; | int qcache_idx_max; | ||||
int i; | int i; | ||||
qcache_idx_max = vm->vm_qcache_max >> vm->vm_quantum_shift; | qcache_idx_max = vm->vm_qcache_max >> vm->vm_quantum_shift; | ||||
for (i = 0; i < qcache_idx_max; i++) | for (i = 0; i < qcache_idx_max; i++) | ||||
zone_drain(vm->vm_qcache[i].qc_cache); | uma_zreclaim(vm->vm_qcache[i].qc_cache, UMA_RECLAIM_DRAIN); | ||||
} | } | ||||
#ifndef UMA_MD_SMALL_ALLOC | #ifndef UMA_MD_SMALL_ALLOC | ||||
static struct mtx_padalign __exclusive_cache_line vmem_bt_lock; | static struct mtx_padalign __exclusive_cache_line vmem_bt_lock; | ||||
/* | /* | ||||
* vmem_bt_alloc: Allocate a new page of boundary tags. | * vmem_bt_alloc: Allocate a new page of boundary tags. | ||||
▲ Show 20 Lines • Show All 1,181 Lines • Show Last 20 Lines |