patch-2.4.14 linux/mm/page_io.c
Next file: linux/mm/shmem.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Mon Oct 29 12:11:17 2001
- Orig file:
v2.4.13/linux/mm/page_io.c
- Orig date:
Wed Apr 25 14:46:21 2001
diff -u --recursive --new-file v2.4.13/linux/mm/page_io.c linux/mm/page_io.c
@@ -43,11 +43,6 @@
struct inode *swapf = 0;
int wait = 0;
- /* Don't allow too many pending pages in flight.. */
- if ((rw == WRITE) && atomic_read(&nr_async_pages) >
- pager_daemon.swap_cluster * (1 << page_cluster))
- wait = 1;
-
if (rw == READ) {
ClearPageUptodate(page);
kstat.pswpin++;
@@ -75,10 +70,6 @@
} else {
return 0;
}
- if (!wait) {
- SetPageDecrAfter(page);
- atomic_inc(&nr_async_pages);
- }
/* block_size == PAGE_SIZE/zones_used */
brw_page(rw, page, dev, zones, block_size);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)