Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2004 13:32:36 +0100
From:      Divacky Roman <xdivac02@stud.fit.vutbr.cz>
To:        current@freebsd.org
Subject:   swap_pager
Message-ID:  <20040112123235.GA80026@stud.fit.vutbr.cz>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040112123235.GA80026>