Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.13-ac8 /mm/page_io.c

Filename:/mm/page_io.c
Lines Added:0
Lines Deleted:9
Also changed in: (Previous) 2.4.13-ac7  2.4.13-ac6  2.4.13-ac5  2.4.13-ac4  2.4.13-ac3  2.4.13-ac1 
(Following) 2.4.14  2.4.15-pre7  2.4.15-pre8  2.4.15-pre9  2.4.15-greased-turkey  2.4.19-pre5-ac3 

Location
[  2.4.13-ac8
  [  mm
     o  page_io.c

Patch

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);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.