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

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

Advertisement

Kernel v2.6.24.3 /mm/hugetlb.c

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

Location
[  2.6.24.3
  [  mm
     o  hugetlb.c

Patch

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index db861d8..9c746cb 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)


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