version 1.27, 2009/10/01 07:42:45 |
version 1.28, 2009/10/01 12:28:34 |
Line 784 wapbl_begin(struct wapbl *wl, const char |
|
Line 784 wapbl_begin(struct wapbl *wl, const char |
|
wl->wl_bufbytes_max / 2) || |
wl->wl_bufbytes_max / 2) || |
((wl->wl_bufcount + (lockcount * 10)) > |
((wl->wl_bufcount + (lockcount * 10)) > |
wl->wl_bufcount_max / 2) || |
wl->wl_bufcount_max / 2) || |
(wapbl_transaction_len(wl) > wl->wl_circ_size / 2); |
(wapbl_transaction_len(wl) > wl->wl_circ_size / 2) || |
|
(wl->wl_dealloccnt >= |
|
(wl->wl_dealloclim - (wl->wl_dealloclim >> 8))); |
mutex_exit(&wl->wl_mtx); |
mutex_exit(&wl->wl_mtx); |
|
|
if (doflush) { |
if (doflush) { |
WAPBL_PRINTF(WAPBL_PRINT_FLUSH, |
WAPBL_PRINTF(WAPBL_PRINT_FLUSH, |
("force flush lockcnt=%d bufbytes=%zu " |
("force flush lockcnt=%d bufbytes=%zu " |
"(max=%zu) bufcount=%zu (max=%zu)\n", |
"(max=%zu) bufcount=%zu (max=%zu) " |
|
"dealloccnt %d (lim=%d)\n", |
lockcount, wl->wl_bufbytes, |
lockcount, wl->wl_bufbytes, |
wl->wl_bufbytes_max, wl->wl_bufcount, |
wl->wl_bufbytes_max, wl->wl_bufcount, |
wl->wl_bufcount_max)); |
wl->wl_bufcount_max, |
|
wl->wl_dealloccnt, wl->wl_dealloclim)); |
} |
} |
|
|
if (doflush) { |
if (doflush) { |