| 179 | static int nswbuf_max; |
| 180 | |
| 181 | void |
| 182 | vm_pager_bufferinit(void) |
| 183 | { |
| 184 | |
| 185 | /* Main zone for paging bufs. */ |
| 186 | pbuf_zone = uma_zcreate("pbuf", |
| 187 | sizeof(struct buf) + PBUF_PAGES * sizeof(vm_page_t), |
| 188 | pbuf_ctor, pbuf_dtor, pbuf_init, NULL, UMA_ALIGN_CACHE, |
| 189 | UMA_ZONE_NOFREE); |
| 190 | /* Few systems may still use this zone directly, so it needs a limit. */ |
| 191 | nswbuf_max += uma_zone_set_max(pbuf_zone, NSWBUF_MIN); |
| 192 | } |
| 193 | |
| 194 | uma_zone_t |
| 195 | pbuf_zsecond_create(const char *name, int max) |
no test coverage detected