diff options
author | Denis V. Lunev <den@openvz.org> | 2008-04-14 01:12:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-14 01:12:13 -0400 |
commit | 9427c4b36b8fe652df1d7c89eae678948e1f4b32 (patch) | |
tree | d2e018d9b09656e04e80ae3d3e88993e76753fbb /include/net | |
parent | 1abf4fb20d38cf58c92b27f4d6ad4fa92a3bb553 (diff) |
[TCP]: Move seq_ops from tcp_iter_state to tcp_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/net')
-rw-r--r-- | include/net/tcp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index f5b61e0f01f2..2c9a650412c0 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1328,8 +1328,8 @@ struct tcp_seq_afinfo { | |||
1328 | struct module *owner; | 1328 | struct module *owner; |
1329 | char *name; | 1329 | char *name; |
1330 | sa_family_t family; | 1330 | sa_family_t family; |
1331 | int (*seq_show) (struct seq_file *m, void *v); | ||
1332 | struct file_operations *seq_fops; | 1331 | struct file_operations *seq_fops; |
1332 | struct seq_operations seq_ops; | ||
1333 | }; | 1333 | }; |
1334 | 1334 | ||
1335 | struct tcp_iter_state { | 1335 | struct tcp_iter_state { |
@@ -1338,7 +1338,6 @@ struct tcp_iter_state { | |||
1338 | enum tcp_seq_states state; | 1338 | enum tcp_seq_states state; |
1339 | struct sock *syn_wait_sk; | 1339 | struct sock *syn_wait_sk; |
1340 | int bucket, sbucket, num, uid; | 1340 | int bucket, sbucket, num, uid; |
1341 | struct seq_operations seq_ops; | ||
1342 | }; | 1341 | }; |
1343 | 1342 | ||
1344 | extern int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo); | 1343 | extern int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo); |