diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-08 10:38:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-08 10:38:50 -0500 |
commit | 1557d33007f63dd96e5d15f33af389378e5f2e54 (patch) | |
tree | 06d05722b2ba5d2a67532f779fa8a88efe3c88f1 /drivers/md/md.c | |
parent | 6ec22f9b037fc0c2e00ddb7023fad279c365324d (diff) | |
parent | c656ae95d1c5c8ed5763356263ace2d03087efec (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl-2.6: (43 commits)
security/tomoyo: Remove now unnecessary handling of security_sysctl.
security/tomoyo: Add a special case to handle accesses through the internal proc mount.
sysctl: Drop & in front of every proc_handler.
sysctl: Remove CTL_NONE and CTL_UNNUMBERED
sysctl: kill dead ctl_handler definitions.
sysctl: Remove the last of the generic binary sysctl support
sysctl net: Remove unused binary sysctl code
sysctl security/tomoyo: Don't look at ctl_name
sysctl arm: Remove binary sysctl support
sysctl x86: Remove dead binary sysctl support
sysctl sh: Remove dead binary sysctl support
sysctl powerpc: Remove dead binary sysctl support
sysctl ia64: Remove dead binary sysctl support
sysctl s390: Remove dead sysctl binary support
sysctl frv: Remove dead binary sysctl support
sysctl mips/lasat: Remove dead binary sysctl support
sysctl drivers: Remove dead binary sysctl support
sysctl crypto: Remove dead binary sysctl support
sysctl security/keys: Remove dead binary sysctl support
sysctl kernel: Remove binary sysctl logic
...
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index b182f86a19dd..5f154ef1e4be 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -98,44 +98,40 @@ static struct ctl_table_header *raid_table_header; | |||
98 | 98 | ||
99 | static ctl_table raid_table[] = { | 99 | static ctl_table raid_table[] = { |
100 | { | 100 | { |
101 | .ctl_name = DEV_RAID_SPEED_LIMIT_MIN, | ||
102 | .procname = "speed_limit_min", | 101 | .procname = "speed_limit_min", |
103 | .data = &sysctl_speed_limit_min, | 102 | .data = &sysctl_speed_limit_min, |
104 | .maxlen = sizeof(int), | 103 | .maxlen = sizeof(int), |
105 | .mode = S_IRUGO|S_IWUSR, | 104 | .mode = S_IRUGO|S_IWUSR, |
106 | .proc_handler = &proc_dointvec, | 105 | .proc_handler = proc_dointvec, |
107 | }, | 106 | }, |
108 | { | 107 | { |
109 | .ctl_name = DEV_RAID_SPEED_LIMIT_MAX, | ||
110 | .procname = "speed_limit_max", | 108 | .procname = "speed_limit_max", |
111 | .data = &sysctl_speed_limit_max, | 109 | .data = &sysctl_speed_limit_max, |
112 | .maxlen = sizeof(int), | 110 | .maxlen = sizeof(int), |
113 | .mode = S_IRUGO|S_IWUSR, | 111 | .mode = S_IRUGO|S_IWUSR, |
114 | .proc_handler = &proc_dointvec, | 112 | .proc_handler = proc_dointvec, |
115 | }, | 113 | }, |
116 | { .ctl_name = 0 } | 114 | { } |
117 | }; | 115 | }; |
118 | 116 | ||
119 | static ctl_table raid_dir_table[] = { | 117 | static ctl_table raid_dir_table[] = { |
120 | { | 118 | { |
121 | .ctl_name = DEV_RAID, | ||
122 | .procname = "raid", | 119 | .procname = "raid", |
123 | .maxlen = 0, | 120 | .maxlen = 0, |
124 | .mode = S_IRUGO|S_IXUGO, | 121 | .mode = S_IRUGO|S_IXUGO, |
125 | .child = raid_table, | 122 | .child = raid_table, |
126 | }, | 123 | }, |
127 | { .ctl_name = 0 } | 124 | { } |
128 | }; | 125 | }; |
129 | 126 | ||
130 | static ctl_table raid_root_table[] = { | 127 | static ctl_table raid_root_table[] = { |
131 | { | 128 | { |
132 | .ctl_name = CTL_DEV, | ||
133 | .procname = "dev", | 129 | .procname = "dev", |
134 | .maxlen = 0, | 130 | .maxlen = 0, |
135 | .mode = 0555, | 131 | .mode = 0555, |
136 | .child = raid_dir_table, | 132 | .child = raid_dir_table, |
137 | }, | 133 | }, |
138 | { .ctl_name = 0 } | 134 | { } |
139 | }; | 135 | }; |
140 | 136 | ||
141 | static const struct block_device_operations md_fops; | 137 | static const struct block_device_operations md_fops; |