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

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

Advertisement

Kernel v2.4.13-pre5 /mm/page_alloc.c

Filename:/mm/page_alloc.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.4.13-pre4  2.4.12-ac3  2.4.12-ac2  2.4.12-ac1  2.4.11  2.4.11-pre6 
(Following) 2.4.13-pre6  2.4.13  2.4.13-ac1  2.4.13-ac2  2.4.13-ac3  2.4.13-ac4 

Location
[  2.4.13-pre5
  [  mm
     o  page_alloc.c

Patch

diff -u --recursive --new-file v2.4.12/linux/mm/page_alloc.c linux/mm/page_alloc.c
--- v2.4.12/linux/mm/page_alloc.c   Tue Oct  9 17:06:53 2001
+++ linux/mm/page_alloc.c   Thu Oct 18 12:47:09 2001
@@ -242,7 +242,7 @@
    current->allocation_order = order;
    current->flags |= PF_MEMALLOC | PF_FREE_PAGES;
 
-   __freed = try_to_free_pages(classzone, gfp_mask, order);
+   __freed = try_to_free_pages(gfp_mask, order);
 
    current->flags &= ~(PF_MEMALLOC | PF_FREE_PAGES);
 
@@ -394,7 +394,7 @@
    }
 
    /* Don't let big-order allocations loop */
-   if (order)
+   if (order > 1)
       return NULL;
 
    /* Yield for kswapd, and try again */


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