diff options
author | Denis V. Lunev <den@openvz.org> | 2008-03-28 21:24:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-28 21:24:26 -0400 |
commit | dda61925f84d89e2f2a4597d6298a05a2bc05c20 (patch) | |
tree | 8d66baedac68ed6a1c026f0142ab405f5c733597 /include | |
parent | 997feb5e7a24ce155c1d3bea9d0b5c6530bb6197 (diff) |
[UDP]: Move seq_ops from udp_iter_state to udp_seq_afinfo.
No need to create seq_operations for each instance of 'netstat'.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/udp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 77af7d46d868..0079d17fd3a3 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -189,8 +189,8 @@ struct udp_seq_afinfo { | |||
189 | char *name; | 189 | char *name; |
190 | sa_family_t family; | 190 | sa_family_t family; |
191 | struct hlist_head *hashtable; | 191 | struct hlist_head *hashtable; |
192 | int (*seq_show) (struct seq_file *m, void *v); | ||
193 | struct file_operations *seq_fops; | 192 | struct file_operations *seq_fops; |
193 | struct seq_operations seq_ops; | ||
194 | }; | 194 | }; |
195 | 195 | ||
196 | struct udp_iter_state { | 196 | struct udp_iter_state { |
@@ -198,7 +198,6 @@ struct udp_iter_state { | |||
198 | sa_family_t family; | 198 | sa_family_t family; |
199 | struct hlist_head *hashtable; | 199 | struct hlist_head *hashtable; |
200 | int bucket; | 200 | int bucket; |
201 | struct seq_operations seq_ops; | ||
202 | }; | 201 | }; |
203 | 202 | ||
204 | #ifdef CONFIG_PROC_FS | 203 | #ifdef CONFIG_PROC_FS |