diff options
author | David Ahern <dsahern@gmail.com> | 2014-05-30 15:34:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-02 19:41:38 -0400 |
commit | 30f38d2fdd79f13fc929489f7e6e517b4a4bfe63 (patch) | |
tree | f4f81228f9f7444d8aa4139040fda858e7fdde0e /net/ipv4 | |
parent | e9d9450497f77ee40c7d895bf1b5b134b9347d5f (diff) |
fib_trie: use seq_file_net rather than seq->private
Make fib_triestat_seq_show consistent with other /proc/net files and
use seq_file_net.
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: James Morris <jmorris@namei.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/fib_trie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 5afeb5aa4c7c..243c7f4e451e 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -2166,7 +2166,7 @@ static void fib_table_print(struct seq_file *seq, struct fib_table *tb) | |||
2166 | 2166 | ||
2167 | static int fib_triestat_seq_show(struct seq_file *seq, void *v) | 2167 | static int fib_triestat_seq_show(struct seq_file *seq, void *v) |
2168 | { | 2168 | { |
2169 | struct net *net = (struct net *)seq->private; | 2169 | struct net *net = seq_file_net(seq); |
2170 | unsigned int h; | 2170 | unsigned int h; |
2171 | 2171 | ||
2172 | seq_printf(seq, | 2172 | seq_printf(seq, |