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

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

Kernel v2.1.132 /mm/swap_state.c

Filename:/mm/swap_state.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.1.130  2.1.126  2.1.123  2.1.121  2.1.120  2.1.117 
(Following)

Location
[  2.1.132
  [  mm
     o  swap_state.c

Patch

diff -u --recursive --new-file v2.1.131/linux/mm/swap_state.c linux/mm/swap_state.c
--- v2.1.131/linux/mm/swap_state.c   Fri Nov 27 13:09:30 1998
+++ linux/mm/swap_state.c   Sun Dec 20 05:51:07 1998
@@ -258,7 +258,7 @@
  * incremented.
  */
 
-static struct page * lookup_swap_cache(unsigned long entry)
+struct page * lookup_swap_cache(unsigned long entry)
 {
    struct page *found;
    
@@ -305,7 +305,7 @@
    if (found_page)
       goto out;
 
-   new_page_addr = __get_free_page(GFP_KERNEL);
+   new_page_addr = __get_free_page(GFP_USER);
    if (!new_page_addr)
       goto out;   /* Out of memory */
    new_page = mem_map + MAP_NR(new_page_addr);


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