Lines Matching refs:nsw_wcount_async
390 static int nsw_wcount_async; /* limit async write buffers */ variable
719 nsw_wcount_async = 4; in swap_pager_swap_init()
720 nsw_wcount_async_max = nsw_wcount_async; in swap_pager_swap_init()
1617 while (nsw_wcount_async == 0) in swap_pager_putpages()
1618 msleep(&nsw_wcount_async, &swbuf_mtx, PVM, in swap_pager_putpages()
1620 nsw_wcount_async--; in swap_pager_putpages()
1628 if (++nsw_wcount_async == 1) in swap_pager_putpages()
1629 wakeup(&nsw_wcount_async); in swap_pager_putpages()
1873 if (++nsw_wcount_async == 1) in swp_pager_async_iodone()
1874 wakeup(&nsw_wcount_async); in swp_pager_async_iodone()
3454 if (nsw_wcount_async + n >= 0) { in sysctl_swap_async_max()
3455 nsw_wcount_async += n; in sysctl_swap_async_max()
3457 wakeup(&nsw_wcount_async); in sysctl_swap_async_max()
3459 nsw_wcount_async_max -= nsw_wcount_async; in sysctl_swap_async_max()
3460 nsw_wcount_async = 0; in sysctl_swap_async_max()
3461 msleep(&nsw_wcount_async, &swbuf_mtx, PSWP, in sysctl_swap_async_max()