Fixes 'free' command reporting
if (n > MAX_SWAPS)
n = MAX_SWAPS;
while(n)
- swapmap_add(n--);
+ swapmap_init(n--);
}
/* Add swap */
openshift = i >= 2 ? 2 : 1;
for (i = 0; i < openshift * 8 ; i++)
- swapmap_add(i);
+ swapmap_init(i);
}
kprintf("gm833: %dK found", num_gm833 * 512);
kprintf(", %dK allocated for swap.\n", openshift * 512);
if (n > MAX_SWAPS)
n = MAX_SWAPS;
while (n)
- swapmap_add(n--);
+ swapmap_init(n--);
}
if (n > MAX_SWAPS)
n = MAX_SWAPS;
while(n)
- swapmap_add(n--);
+ swapmap_init(n--);
}
void device_init(void)
n = MAX_SWAPS;
#ifdef SWAPDEV
while (n)
- swapmap_add(n--);
+ swapmap_init(n--);
#endif
}
if (n > MAX_SWAPS)
n = MAX_SWAPS;
while(n)
- swapmap_add(n--);
+ swapmap_init(n--);
}
/*