| Kernel v2.4.13-ac8 /mm/page_io.c |
|---|
 2.4.13-ac8
 mm
 page_io.c
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla/mm/page_io.c linux.ac/mm/page_io.c
--- linux.vanilla/mm/page_io.c Thu Sep 20 07:37:30 2001
+++ linux.ac/mm/page_io.c Wed Oct 10 01:48:38 2001
@@ -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);
|