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

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

Advertisement

Kernel v2.6.24.4-rc1 /mm/hugetlb.c

Filename:/mm/hugetlb.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.6.24.3  2.6.24.3-rc1  2.6.24-git22  2.6.24-git21  2.6.24-git20  2.6.24-git19 
(Following) 2.6.24.4-rc2  2.6.24.4-rc3  2.6.24.4  2.6.24.5  2.6.24.6  2.6.24.7 

Location
[  2.6.24.4-rc1
  [  mm
     o  hugetlb.c

Patch

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 9c746cb..d95ce35 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -119,6 +119,7 @@ static void free_huge_page(struct page *page)
    struct address_space *mapping;
 
    mapping = (struct address_space *) page_private(page);
+   set_page_private(page, 0);
    BUG_ON(page_count(page));
    INIT_LIST_HEAD(&page->lru);
 
@@ -133,7 +134,6 @@ static void free_huge_page(struct page *page)
    spin_unlock(&hugetlb_lock);
    if (mapping)
       hugetlb_put_quota(mapping, 1);
-   set_page_private(page, 0);
 }
 
 /*


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