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

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

Advertisement

Kernel v2.4.14-pre8 /fs/buffer.c

Filename:/fs/buffer.c
Lines Added:4
Lines Deleted:6
Also changed in: (Previous) 2.4.14-pre7  2.4.14-pre6  2.4.14-pre5  2.4.14-pre4  2.4.14-pre3  2.4.13-ac7 
(Following) 2.4.14  2.4.15-pre2  2.4.15-pre3  2.4.15-pre4  2.4.15-pre5  2.4.15-pre6 

Location
[  2.4.14-pre8
  [  fs
     o  buffer.c

Patch

diff -u --recursive --new-file v2.4.13/linux/fs/buffer.c linux/fs/buffer.c
--- v2.4.13/linux/fs/buffer.c   Tue Oct 23 22:48:53 2001
+++ linux/fs/buffer.c   Mon Oct 29 12:11:17 2001
@@ -705,8 +705,12 @@
 
 static void free_more_memory(void)
 {
+   zone_t * zone = contig_page_data.node_zonelists[GFP_NOFS & GFP_ZONEMASK].zones[0];
+   
    balance_dirty();
    wakeup_bdflush();
+   try_to_free_pages(zone, GFP_NOFS, 0);
+   run_task_queue(&tq_disk);
    current->policy |= SCHED_YIELD;
    __set_current_state(TASK_RUNNING);
    schedule();
@@ -765,12 +769,6 @@
     */
    if (!PageError(page))
       SetPageUptodate(page);
-
-   /*
-    * Run the hooks that have to be done when a page I/O has completed.
-    */
-   if (PageTestandClearDecrAfter(page))
-      atomic_dec(&nr_async_pages);
 
    UnlockPage(page);
 


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