]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Use the new proc_do_intvec_unsigned() handler for various unsigned inputs.
authorDave Young <hidave.darkstar@gmail.com>
Wed, 3 Aug 2011 00:53:04 +0000 (10:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 22 Aug 2011 03:27:18 +0000 (13:27 +1000)
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sysctl.c

index bb57668828c3a029360c8385863c7afe60b8e9b3..f31e7ec8ceaaa0f3f866bc6f9b6f5f10eef7a1f5 100644 (file)
@@ -1194,8 +1194,7 @@ static struct ctl_table vm_table[] = {
                .data           = &sysctl_max_map_count,
                .maxlen         = sizeof(sysctl_max_map_count),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
+               .proc_handler   = proc_dointvec_unsigned,
        },
 #else
        {
@@ -1203,8 +1202,7 @@ static struct ctl_table vm_table[] = {
                .data           = &sysctl_nr_trim_pages,
                .maxlen         = sizeof(sysctl_nr_trim_pages),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
+               .proc_handler   = proc_dointvec_unsigned,
        },
 #endif
        {
@@ -1219,16 +1217,14 @@ static struct ctl_table vm_table[] = {
                .data           = &block_dump,
                .maxlen         = sizeof(block_dump),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec,
-               .extra1         = &zero,
+               .proc_handler   = proc_dointvec_unsigned,
        },
        {
                .procname       = "vfs_cache_pressure",
                .data           = &sysctl_vfs_cache_pressure,
                .maxlen         = sizeof(sysctl_vfs_cache_pressure),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec,
-               .extra1         = &zero,
+               .proc_handler   = proc_dointvec_unsigned,
        },
 #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT
        {
@@ -1236,8 +1232,7 @@ static struct ctl_table vm_table[] = {
                .data           = &sysctl_legacy_va_layout,
                .maxlen         = sizeof(sysctl_legacy_va_layout),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec,
-               .extra1         = &zero,
+               .proc_handler   = proc_dointvec_unsigned,
        },
 #endif
 #ifdef CONFIG_NUMA
@@ -1246,8 +1241,7 @@ static struct ctl_table vm_table[] = {
                .data           = &zone_reclaim_mode,
                .maxlen         = sizeof(zone_reclaim_mode),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec,
-               .extra1         = &zero,
+               .proc_handler   = proc_dointvec_unsigned,
        },
        {
                .procname       = "min_unmapped_ratio",
@@ -1302,8 +1296,7 @@ static struct ctl_table vm_table[] = {
                .data           = &vdso_enabled,
                .maxlen         = sizeof(vdso_enabled),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec,
-               .extra1         = &zero,
+               .proc_handler   = proc_dointvec_unsigned,
        },
 #endif
 #ifdef CONFIG_HIGHMEM