patch-2.1.16 linux/mm/swapfile.c
Next file: linux/mm/vmscan.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sat Dec 14 14:24:06 1996
- Orig file:
v2.1.15/linux/mm/swapfile.c
- Orig date:
Sat Nov 30 12:03:13 1996
diff -u --recursive --new-file v2.1.15/linux/mm/swapfile.c linux/mm/swapfile.c
@@ -83,7 +83,9 @@
type = swap_list.next;
if (type < 0)
- return 0;
+ return 0;
+ if (nr_swap_pages == 0)
+ return 0;
while (1) {
p = &swap_info[type];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov