aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-16 06:11:48 -0500
committerEric W. Biederman <ebiederm@xmission.com>2009-11-18 11:37:40 -0500
commit6d4561110a3e9fa742aeec6717248a491dfb1878 (patch)
tree689e2abf19940416ce597ba56ed31026ff59bd21 /net/sunrpc/xprtrdma
parent86926d0096279b9739ceeff40f68d3c33b9119a9 (diff)
sysctl: Drop & in front of every proc_handler.
For consistency drop & in front of every proc_handler. Explicity taking the address is unnecessary and it prevents optimizations like stubbing the proc_handlers to NULL. Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Joe Perches <joe@perches.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net/sunrpc/xprtrdma')
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma.c24
-rw-r--r--net/sunrpc/xprtrdma/transport.c12
2 files changed, 18 insertions, 18 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma.c b/net/sunrpc/xprtrdma/svc_rdma.c
index 678cee22013f..5b8a8ff93a25 100644
--- a/net/sunrpc/xprtrdma/svc_rdma.c
+++ b/net/sunrpc/xprtrdma/svc_rdma.c
@@ -120,7 +120,7 @@ static ctl_table svcrdma_parm_table[] = {
120 .data = &svcrdma_max_requests, 120 .data = &svcrdma_max_requests,
121 .maxlen = sizeof(unsigned int), 121 .maxlen = sizeof(unsigned int),
122 .mode = 0644, 122 .mode = 0644,
123 .proc_handler = &proc_dointvec_minmax, 123 .proc_handler = proc_dointvec_minmax,
124 .extra1 = &min_max_requests, 124 .extra1 = &min_max_requests,
125 .extra2 = &max_max_requests 125 .extra2 = &max_max_requests
126 }, 126 },
@@ -129,7 +129,7 @@ static ctl_table svcrdma_parm_table[] = {
129 .data = &svcrdma_max_req_size, 129 .data = &svcrdma_max_req_size,
130 .maxlen = sizeof(unsigned int), 130 .maxlen = sizeof(unsigned int),
131 .mode = 0644, 131 .mode = 0644,
132 .proc_handler = &proc_dointvec_minmax, 132 .proc_handler = proc_dointvec_minmax,
133 .extra1 = &min_max_inline, 133 .extra1 = &min_max_inline,
134 .extra2 = &max_max_inline 134 .extra2 = &max_max_inline
135 }, 135 },
@@ -138,7 +138,7 @@ static ctl_table svcrdma_parm_table[] = {
138 .data = &svcrdma_ord, 138 .data = &svcrdma_ord,
139 .maxlen = sizeof(unsigned int), 139 .maxlen = sizeof(unsigned int),
140 .mode = 0644, 140 .mode = 0644,
141 .proc_handler = &proc_dointvec_minmax, 141 .proc_handler = proc_dointvec_minmax,
142 .extra1 = &min_ord, 142 .extra1 = &min_ord,
143 .extra2 = &max_ord, 143 .extra2 = &max_ord,
144 }, 144 },
@@ -148,63 +148,63 @@ static ctl_table svcrdma_parm_table[] = {
148 .data = &rdma_stat_read, 148 .data = &rdma_stat_read,
149 .maxlen = sizeof(atomic_t), 149 .maxlen = sizeof(atomic_t),
150 .mode = 0644, 150 .mode = 0644,
151 .proc_handler = &read_reset_stat, 151 .proc_handler = read_reset_stat,
152 }, 152 },
153 { 153 {
154 .procname = "rdma_stat_recv", 154 .procname = "rdma_stat_recv",
155 .data = &rdma_stat_recv, 155 .data = &rdma_stat_recv,
156 .maxlen = sizeof(atomic_t), 156 .maxlen = sizeof(atomic_t),
157 .mode = 0644, 157 .mode = 0644,
158 .proc_handler = &read_reset_stat, 158 .proc_handler = read_reset_stat,
159 }, 159 },
160 { 160 {
161 .procname = "rdma_stat_write", 161 .procname = "rdma_stat_write",
162 .data = &rdma_stat_write, 162 .data = &rdma_stat_write,
163 .maxlen = sizeof(atomic_t), 163 .maxlen = sizeof(atomic_t),
164 .mode = 0644, 164 .mode = 0644,
165 .proc_handler = &read_reset_stat, 165 .proc_handler = read_reset_stat,
166 }, 166 },
167 { 167 {
168 .procname = "rdma_stat_sq_starve", 168 .procname = "rdma_stat_sq_starve",
169 .data = &rdma_stat_sq_starve, 169 .data = &rdma_stat_sq_starve,
170 .maxlen = sizeof(atomic_t), 170 .maxlen = sizeof(atomic_t),
171 .mode = 0644, 171 .mode = 0644,
172 .proc_handler = &read_reset_stat, 172 .proc_handler = read_reset_stat,
173 }, 173 },
174 { 174 {
175 .procname = "rdma_stat_rq_starve", 175 .procname = "rdma_stat_rq_starve",
176 .data = &rdma_stat_rq_starve, 176 .data = &rdma_stat_rq_starve,
177 .maxlen = sizeof(atomic_t), 177 .maxlen = sizeof(atomic_t),
178 .mode = 0644, 178 .mode = 0644,
179 .proc_handler = &read_reset_stat, 179 .proc_handler = read_reset_stat,
180 }, 180 },
181 { 181 {
182 .procname = "rdma_stat_rq_poll", 182 .procname = "rdma_stat_rq_poll",
183 .data = &rdma_stat_rq_poll, 183 .data = &rdma_stat_rq_poll,
184 .maxlen = sizeof(atomic_t), 184 .maxlen = sizeof(atomic_t),
185 .mode = 0644, 185 .mode = 0644,
186 .proc_handler = &read_reset_stat, 186 .proc_handler = read_reset_stat,
187 }, 187 },
188 { 188 {
189 .procname = "rdma_stat_rq_prod", 189 .procname = "rdma_stat_rq_prod",
190 .data = &rdma_stat_rq_prod, 190 .data = &rdma_stat_rq_prod,
191 .maxlen = sizeof(atomic_t), 191 .maxlen = sizeof(atomic_t),
192 .mode = 0644, 192 .mode = 0644,
193 .proc_handler = &read_reset_stat, 193 .proc_handler = read_reset_stat,
194 }, 194 },
195 { 195 {
196 .procname = "rdma_stat_sq_poll", 196 .procname = "rdma_stat_sq_poll",
197 .data = &rdma_stat_sq_poll, 197 .data = &rdma_stat_sq_poll,
198 .maxlen = sizeof(atomic_t), 198 .maxlen = sizeof(atomic_t),
199 .mode = 0644, 199 .mode = 0644,
200 .proc_handler = &read_reset_stat, 200 .proc_handler = read_reset_stat,
201 }, 201 },
202 { 202 {
203 .procname = "rdma_stat_sq_prod", 203 .procname = "rdma_stat_sq_prod",
204 .data = &rdma_stat_sq_prod, 204 .data = &rdma_stat_sq_prod,
205 .maxlen = sizeof(atomic_t), 205 .maxlen = sizeof(atomic_t),
206 .mode = 0644, 206 .mode = 0644,
207 .proc_handler = &read_reset_stat, 207 .proc_handler = read_reset_stat,
208 }, 208 },
209 { }, 209 { },
210}; 210};
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c
index 476816062243..7018eef1dcdd 100644
--- a/net/sunrpc/xprtrdma/transport.c
+++ b/net/sunrpc/xprtrdma/transport.c
@@ -90,7 +90,7 @@ static ctl_table xr_tunables_table[] = {
90 .data = &xprt_rdma_slot_table_entries, 90 .data = &xprt_rdma_slot_table_entries,
91 .maxlen = sizeof(unsigned int), 91 .maxlen = sizeof(unsigned int),
92 .mode = 0644, 92 .mode = 0644,
93 .proc_handler = &proc_dointvec_minmax, 93 .proc_handler = proc_dointvec_minmax,
94 .extra1 = &min_slot_table_size, 94 .extra1 = &min_slot_table_size,
95 .extra2 = &max_slot_table_size 95 .extra2 = &max_slot_table_size
96 }, 96 },
@@ -99,21 +99,21 @@ static ctl_table xr_tunables_table[] = {
99 .data = &xprt_rdma_max_inline_read, 99 .data = &xprt_rdma_max_inline_read,
100 .maxlen = sizeof(unsigned int), 100 .maxlen = sizeof(unsigned int),
101 .mode = 0644, 101 .mode = 0644,
102 .proc_handler = &proc_dointvec, 102 .proc_handler = proc_dointvec,
103 }, 103 },
104 { 104 {
105 .procname = "rdma_max_inline_write", 105 .procname = "rdma_max_inline_write",
106 .data = &xprt_rdma_max_inline_write, 106 .data = &xprt_rdma_max_inline_write,
107 .maxlen = sizeof(unsigned int), 107 .maxlen = sizeof(unsigned int),
108 .mode = 0644, 108 .mode = 0644,
109 .proc_handler = &proc_dointvec, 109 .proc_handler = proc_dointvec,
110 }, 110 },
111 { 111 {
112 .procname = "rdma_inline_write_padding", 112 .procname = "rdma_inline_write_padding",
113 .data = &xprt_rdma_inline_write_padding, 113 .data = &xprt_rdma_inline_write_padding,
114 .maxlen = sizeof(unsigned int), 114 .maxlen = sizeof(unsigned int),
115 .mode = 0644, 115 .mode = 0644,
116 .proc_handler = &proc_dointvec_minmax, 116 .proc_handler = proc_dointvec_minmax,
117 .extra1 = &zero, 117 .extra1 = &zero,
118 .extra2 = &max_padding, 118 .extra2 = &max_padding,
119 }, 119 },
@@ -122,7 +122,7 @@ static ctl_table xr_tunables_table[] = {
122 .data = &xprt_rdma_memreg_strategy, 122 .data = &xprt_rdma_memreg_strategy,
123 .maxlen = sizeof(unsigned int), 123 .maxlen = sizeof(unsigned int),
124 .mode = 0644, 124 .mode = 0644,
125 .proc_handler = &proc_dointvec_minmax, 125 .proc_handler = proc_dointvec_minmax,
126 .extra1 = &min_memreg, 126 .extra1 = &min_memreg,
127 .extra2 = &max_memreg, 127 .extra2 = &max_memreg,
128 }, 128 },
@@ -131,7 +131,7 @@ static ctl_table xr_tunables_table[] = {
131 .data = &xprt_rdma_pad_optimize, 131 .data = &xprt_rdma_pad_optimize,
132 .maxlen = sizeof(unsigned int), 132 .maxlen = sizeof(unsigned int),
133 .mode = 0644, 133 .mode = 0644,
134 .proc_handler = &proc_dointvec, 134 .proc_handler = proc_dointvec,
135 }, 135 },
136 { }, 136 { },
137}; 137};