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

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

Advertisement

Kernel v2.6.24-git18 /mm/hugetlb.c

Filename:/mm/hugetlb.c
Lines Added:2
Lines Deleted:0
Also changed in: (Previous) 2.6.24-git17  2.6.24-git16  2.6.24-git15  2.6.24  2.6.24-rc8-git8  2.6.24-rc8 
(Following) 2.6.24-git19  2.6.24-git20  2.6.24-git21  2.6.24-git22  2.6.24.3-rc1  2.6.24.3 

Location
[  2.6.24-git18
  [  mm
     o  hugetlb.c

Patch

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index db861d8..1a56420 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -813,6 +813,7 @@ static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma,
 
    spin_unlock(&mm->page_table_lock);
    copy_huge_page(new_page, old_page, address, vma);
+   __SetPageUptodate(new_page);
    spin_lock(&mm->page_table_lock);
 
    ptep = huge_pte_offset(mm, address & HPAGE_MASK);
@@ -858,6 +859,7 @@ retry:
          goto out;
       }
       clear_huge_page(page, address);
+      __SetPageUptodate(page);
 
       if (vma->vm_flags & VM_SHARED) {
          int err;


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