aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 5717f27a0704..88248b3c20bb 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2373,7 +2373,7 @@ early_param("numa_zonelist_order", setup_numa_zonelist_order);
2373 * sysctl handler for numa_zonelist_order 2373 * sysctl handler for numa_zonelist_order
2374 */ 2374 */
2375int numa_zonelist_order_handler(ctl_table *table, int write, 2375int numa_zonelist_order_handler(ctl_table *table, int write,
2376 struct file *file, void __user *buffer, size_t *length, 2376 void __user *buffer, size_t *length,
2377 loff_t *ppos) 2377 loff_t *ppos)
2378{ 2378{
2379 char saved_string[NUMA_ZONELIST_ORDER_LEN]; 2379 char saved_string[NUMA_ZONELIST_ORDER_LEN];
@@ -2382,7 +2382,7 @@ int numa_zonelist_order_handler(ctl_table *table, int write,
2382 if (write) 2382 if (write)
2383 strncpy(saved_string, (char*)table->data, 2383 strncpy(saved_string, (char*)table->data,
2384 NUMA_ZONELIST_ORDER_LEN); 2384 NUMA_ZONELIST_ORDER_LEN);
2385 ret = proc_dostring(table, write, file, buffer, length, ppos); 2385 ret = proc_dostring(table, write, buffer, length, ppos);
2386 if (ret) 2386 if (ret)
2387 return ret; 2387 return ret;
2388 if (write) { 2388 if (write) {
@@ -4706,9 +4706,9 @@ module_init(init_per_zone_wmark_min)
4706 * changes. 4706 * changes.
4707 */ 4707 */
4708int min_free_kbytes_sysctl_handler(ctl_table *table, int write, 4708int min_free_kbytes_sysctl_handler(ctl_table *table, int write,
4709 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) 4709 void __user *buffer, size_t *length, loff_t *ppos)
4710{ 4710{
4711 proc_dointvec(table, write, file, buffer, length, ppos); 4711 proc_dointvec(table, write, buffer, length, ppos);
4712 if (write) 4712 if (write)
4713 setup_per_zone_wmarks(); 4713 setup_per_zone_wmarks();
4714 return 0; 4714 return 0;
@@ -4716,12 +4716,12 @@ int min_free_kbytes_sysctl_handler(ctl_table *table, int write,
4716 4716
4717#ifdef CONFIG_NUMA 4717#ifdef CONFIG_NUMA
4718int sysctl_min_unmapped_ratio_sysctl_handler(ctl_table *table, int write, 4718int sysctl_min_unmapped_ratio_sysctl_handler(ctl_table *table, int write,
4719 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) 4719 void __user *buffer, size_t *length, loff_t *ppos)
4720{ 4720{
4721 struct zone *zone; 4721 struct zone *zone;
4722 int rc; 4722 int rc;
4723 4723
4724 rc = proc_dointvec_minmax(table, write, file, buffer, length, ppos); 4724 rc = proc_dointvec_minmax(table, write, buffer, length, ppos);
4725 if (rc) 4725 if (rc)
4726 return rc; 4726 return rc;
4727 4727
@@ -4732,12 +4732,12 @@ int sysctl_min_unmapped_ratio_sysctl_handler(ctl_table *table, int write,
4732} 4732}
4733 4733
4734int sysctl_min_slab_ratio_sysctl_handler(ctl_table *table, int write, 4734int sysctl_min_slab_ratio_sysctl_handler(ctl_table *table, int write,
4735 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) 4735 void __user *buffer, size_t *length, loff_t *ppos)
4736{ 4736{
4737 struct zone *zone; 4737 struct zone *zone;
4738 int rc; 4738 int rc;
4739 4739
4740 rc = proc_dointvec_minmax(table, write, file, buffer, length, ppos); 4740 rc = proc_dointvec_minmax(table, write, buffer, length, ppos);
4741 if (rc) 4741 if (rc)
4742 return rc; 4742 return rc;
4743 4743
@@ -4758,9 +4758,9 @@ int sysctl_min_slab_ratio_sysctl_handler(ctl_table *table, int write,
4758 * if in function of the boot time zone sizes. 4758 * if in function of the boot time zone sizes.
4759 */ 4759 */
4760int lowmem_reserve_ratio_sysctl_handler(ctl_table *table, int write, 4760int lowmem_reserve_ratio_sysctl_handler(ctl_table *table, int write,
4761 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) 4761 void __user *buffer, size_t *length, loff_t *ppos)
4762{ 4762{
4763 proc_dointvec_minmax(table, write, file, buffer, length, ppos); 4763 proc_dointvec_minmax(table, write, buffer, length, ppos);
4764 setup_per_zone_lowmem_reserve(); 4764 setup_per_zone_lowmem_reserve();
4765 return 0; 4765 return 0;
4766} 4766}
@@ -4772,13 +4772,13 @@ int lowmem_reserve_ratio_sysctl_handler(ctl_table *table, int write,
4772 */ 4772 */
4773 4773
4774int percpu_pagelist_fraction_sysctl_handler(ctl_table *table, int write, 4774int percpu_pagelist_fraction_sysctl_handler(ctl_table *table, int write,
4775 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) 4775 void __user *buffer, size_t *length, loff_t *ppos)
4776{ 4776{
4777 struct zone *zone; 4777 struct zone *zone;
4778 unsigned int cpu; 4778 unsigned int cpu;
4779 int ret; 4779 int ret;
4780 4780
4781 ret = proc_dointvec_minmax(table, write, file, buffer, length, ppos); 4781 ret = proc_dointvec_minmax(table, write, buffer, length, ppos);
4782 if (!write || (ret == -EINVAL)) 4782 if (!write || (ret == -EINVAL))
4783 return ret; 4783 return ret;
4784 for_each_populated_zone(zone) { 4784 for_each_populated_zone(zone) {