- if (freemem >= lotsfree)
- return;
- scanrate = (slowscan * vavail + fastscan * (lotsfree - vavail)) / nz(lotsfree);
- desscan = ((LOOPPAGES / CLSIZE) / nz(scanrate)) / RATETOSCHEDPAGING;
- wakeup((caddr_t)&proc[2]);
+ if (freemem < lotsfree) {
+ scanrate =
+ (slowscan * vavail + fastscan * (lotsfree - vavail)) /
+ nz(lotsfree);
+ desscan = ((LOOPPAGES / CLSIZE) / nz(scanrate)) /
+ RATETOSCHEDPAGING;
+ wakeup((caddr_t)&proc[2]);
+ }