[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>
This commit is contained in:
committed by
David S. Miller
parent
997feb5e7a
commit
dda61925f8
@ -189,8 +189,8 @@ struct udp_seq_afinfo {
|
||||
char *name;
|
||||
sa_family_t family;
|
||||
struct hlist_head *hashtable;
|
||||
int (*seq_show) (struct seq_file *m, void *v);
|
||||
struct file_operations *seq_fops;
|
||||
struct seq_operations seq_ops;
|
||||
};
|
||||
|
||||
struct udp_iter_state {
|
||||
@ -198,7 +198,6 @@ struct udp_iter_state {
|
||||
sa_family_t family;
|
||||
struct hlist_head *hashtable;
|
||||
int bucket;
|
||||
struct seq_operations seq_ops;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
|
Reference in New Issue
Block a user