diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-09-23 18:57:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-24 10:21:04 -0400 |
commit | 8d65af789f3e2cf4cfbdbf71a0f7a61ebcd41d38 (patch) | |
tree | 121df3bfffc7853ac6d2c514ad514d4a748a0933 /mm/page_alloc.c | |
parent | c0d0787b6d47d9f4d5e8bd321921104e854a9135 (diff) |
sysctl: remove "struct file *" argument of ->proc_handler
It's unused.
It isn't needed -- read or write flag is already passed and sysctl
shouldn't care about the rest.
It _was_ used in two places at arch/frv for some reason.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 24 |
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 | */ |
2375 | int numa_zonelist_order_handler(ctl_table *table, int write, | 2375 | int 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 | */ |
4708 | int min_free_kbytes_sysctl_handler(ctl_table *table, int write, | 4708 | int 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 |
4718 | int sysctl_min_unmapped_ratio_sysctl_handler(ctl_table *table, int write, | 4718 | int 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 | ||
4734 | int sysctl_min_slab_ratio_sysctl_handler(ctl_table *table, int write, | 4734 | int 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 | */ |
4760 | int lowmem_reserve_ratio_sysctl_handler(ctl_table *table, int write, | 4760 | int 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 | ||
4774 | int percpu_pagelist_fraction_sysctl_handler(ctl_table *table, int write, | 4774 | int 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) { |