swap_pager
Divacky Roman
xdivac02 at stud.fit.vutbr.cz
Mon Jan 12 04:32:42 PST 2004
I disabled my swap (the only one I have) and I got this message:
swap_pager_getswapspace(1): failed
shouldnt we set swap_pager_full = 2 in swapoff() in a case nswapdev reached
zero?
--- /sys/vm/swap_pager.c Mon Jan 5 09:32:00 2004
+++ swap_pager.c Sat Jan 10 16:24:49 2004
@@ -2267,6 +2267,10 @@
mtx_lock(&sw_dev_mtx);
TAILQ_REMOVE(&swtailq, sp, sw_list);
nswapdev--;
+ if (nswapdev == 0) {
+ swap_pager_full = 2;
+ swap_pager_almost_full = 1;
+ }
if (swdevhd == sp)
swdevhd = NULL;
mtx_unlock(&sw_dev_mtx);
thnx
Roman Divacky
More information about the freebsd-current
mailing list