Home
last modified time | relevance | path

Searched refs:pdecr (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/vm/
H A Dswap_pager.c229 swap_release_by_cred_rlimit(u_long pdecr, struct ucred *cred) in swap_release_by_cred_rlimit() argument
239 prev = atomic_fetchadd_long(&uip->ui_vmsize, -pdecr); in swap_release_by_cred_rlimit()
240 KASSERT(prev >= pdecr, in swap_release_by_cred_rlimit()
243 atomic_subtract_long(&uip->ui_vmsize, pdecr); in swap_release_by_cred_rlimit()
364 u_long pdecr; in swap_release_by_cred() local
372 pdecr = atop(decr); in swap_release_by_cred()
374 prev = atomic_fetchadd_long(&swap_reserved, -pdecr); in swap_release_by_cred()
375 KASSERT(prev >= pdecr, ("swap_reserved < decr")); in swap_release_by_cred()
377 atomic_subtract_long(&swap_reserved, pdecr); in swap_release_by_cred()
380 swap_release_by_cred_rlimit(pdecr, cred); in swap_release_by_cred()