sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals.patch removed from -mm tree
The patch titled
Subject: sysctl: move some boundary constants from sysctl.c to sysctl_vals
has been removed from the -mm tree. Its filename was
sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Xiaoming Ni <[email protected]>
Subject: sysctl: move some boundary constants from sysctl.c to sysctl_vals
sysctl has helpers which let us specify boundary values for a min or max int value. Since these are used for a boundary check only they don't change, so move these variables to sysctl_vals to avoid adding duplicate variables. This will help with our cleanup of kernel/sysctl.c.
---
fs/proc/proc_sysctl.c | 2 - include/linux/sysctl.h | 13 ++++++++--- kernel/sysctl.c | 45 ++++++++++++++++----------------------- 3 files changed, 30 insertions(+), 30 deletions(-)
fs/proc/proc_sysctl.c renamed from fs/proc/proc_sysctl.c~sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals +1 -1
@@ -26,7 +26,7 @@ static const struct file_operations procstatic const struct inode_operations proc_sys_dir_operations;/* shared constants to be used in various sysctls */ -const int sysctl_vals[] = {0 ,1 ,INT_MAX }; +const int sysctl_vals[] = {-1 ,0 ,1 ,2 ,4 ,100 ,200 ,1000 ,3000 ,INT_MAX };EXPORT_SYMBOL (sysctl_vals);/* Support for permanently empty directories */
include/linux/sysctl.h renamed from include/linux/sysctl.h~sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals +10 -3
@@ -38,9 +38,16 @@ struct ctl_table_header;struct ctl_dir ;/* Keep the same order as in fs/proc/proc_sysctl.c */ -#define SYSCTL_ZERO ((void *)&sysctl_vals[0]) -#define SYSCTL_ONE ((void *)&sysctl_vals[1]) -#define SYSCTL_INT_MAX ((void *)&sysctl_vals[2]) +#define SYSCTL_NEG_ONE ((void *)&sysctl_vals[0]) +#define SYSCTL_ZERO ((void *)&sysctl_vals[1]) +#define SYSCTL_ONE ((void *)&sysctl_vals[2]) +#define SYSCTL_TWO ((void *)&sysctl_vals[3]) +#define SYSCTL_FOUR ((void *)&sysctl_vals[4]) +#define SYSCTL_ONE_HUNDRED ((void *)&sysctl_vals[5]) +#define SYSCTL_TWO_HUNDRED ((void *)&sysctl_vals[6]) +#define SYSCTL_ONE_THOUSAND ((void *)&sysctl_vals[7]) +#define SYSCTL_THREE_THOUSAND ((void *)&sysctl_vals[8]) +#define SYSCTL_INT_MAX ((void *)&sysctl_vals[9])extern const int sysctl_vals[];
kernel/sysctl.c renamed from kernel/sysctl.c~sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals +19 -26
168 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are