patch-2.2.0-pre6 linux/mm/vmscan.c
Next file: linux/net/bridge/br.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Thu Jan 7 15:09:46 1999
- Orig file:
v2.2.0-pre5/linux/mm/vmscan.c
- Orig date:
Thu Jan 7 15:11:41 1999
diff -u --recursive --new-file v2.2.0-pre5/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -76,7 +76,6 @@
set_pte(page_table, __pte(entry));
drop_pte:
vma->vm_mm->rss--;
- tsk->nswap++;
flush_tlb_page(vma, address);
__free_page(page_map);
return 0;
@@ -99,6 +98,14 @@
pte_clear(page_table);
goto drop_pte;
}
+
+ /*
+ * Don't go down into the swap-out stuff if
+ * we cannot do I/O! Avoid recursing on FS
+ * locks etc.
+ */
+ if (!(gfp_mask & __GFP_IO))
+ return 0;
/*
* Ok, it's really dirty. That means that
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov