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

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

Advertisement

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

Filename:/mm/hugetlb.c
Lines Added:12
Lines Deleted:0
Also changed in: (Previous) 2.6.24-git19  2.6.24-git18  2.6.24-git17  2.6.24-git16  2.6.24-git15  2.6.24 
(Following) 2.6.24-git21  2.6.24-git22  2.6.24.3-rc1  2.6.24.3  2.6.24.4-rc1  2.6.24.4-rc2 

Location
[  2.6.24-git20
  [  mm
     o  hugetlb.c

Patch

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index db861d8..d9a3803 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -605,6 +605,16 @@ int hugetlb_treat_movable_handler(struct ctl_table *table, int write,
    return 0;
 }
 
+int hugetlb_overcommit_handler(struct ctl_table *table, int write,
+         struct file *file, void __user *buffer,
+         size_t *length, loff_t *ppos)
+{
+   spin_lock(&hugetlb_lock);
+   proc_doulongvec_minmax(table, write, file, buffer, length, ppos);
+   spin_unlock(&hugetlb_lock);
+   return 0;
+}
+
 #endif /* CONFIG_SYSCTL */
 
 int hugetlb_report_meminfo(char *buf)
@@ -813,6 +823,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 +869,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.