Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

no options VMSWAP, correct fix?



Is this the correct way to fix kernel build without VMSWAP?
Limited testing on an ARM board does not reveal problems.

-Mikko

--- a/sys/uvm/uvm_pdpolicy_clock.c
+++ b/sys/uvm/uvm_pdpolicy_clock.c
@@ -262,12 +262,13 @@ uvmpdpol_balancequeue(int swap_shortage)
                /*
                 * if there's a shortage of swap slots, try to free it.
                 */
-
+#if defined (VMSWAP)
                if (swap_shortage > 0 && (p->pqflags & PQ_SWAPBACKED) != 0) {
                        if (uvmpd_trydropswap(p)) {
                                swap_shortage--;
                        }
                }
+#endif /* (VMSWAP) */
 
                /*
                 * if there's a shortage of inactive pages, deactivate.



Home | Main Index | Thread Index | Old Index