patch-2.4.0-test9 linux/mm/page_io.c
Next file: linux/mm/slab.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Fri Sep 15 16:51:21 2000
- Orig file:
v2.4.0-test8/linux/mm/page_io.c
- Orig date:
Mon Aug 7 21:01:36 2000
diff -u --recursive --new-file v2.4.0-test8/linux/mm/page_io.c linux/mm/page_io.c
@@ -43,7 +43,8 @@
struct inode *swapf = 0;
/* Don't allow too many pending pages in flight.. */
- if (atomic_read(&nr_async_pages) > pager_daemon.swap_cluster)
+ if ((rw == WRITE) && atomic_read(&nr_async_pages) >
+ pager_daemon.swap_cluster * (1 << page_cluster))
wait = 1;
if (rw == READ) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)