fib_trie: use seq_file_net rather than seq->private
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Cc David S. Miller <[email protected]>
Cc Alexey Kuznetsov <[email protected]>
Cc James Morris <[email protected]>
Cc Hideaki YOSHIFUJI <[email protected]>
Cc Patrick McHardy <[email protected]>
--- net/ipv4/fib_trie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/fib_trie.c +1 -1
@@ -2166,7 +2166,7 @@ static void fib_table_print(struct seq_file *seq, struct fib_table *tb)static int fib_triestat_seq_show (struct seq_file *seq,void *v) { -struct net *net = (struct net *)seq->private; +struct net *net =seq_file_net (seq);unsigned int h; seq_printf(seq,
Signature · 1 line
1.8.5.2 (Apple Git-48)
From: David Ahern <[email protected]>
Date: Fri, 30 May 2014 13:34:39 -0600
Quoted 4 lines
Make
fib_triestat_seq_showconsistent with other/proc/netfiles and useseq_file_net.Signed-off-by David Ahern <[email protected]>
Applied to net-next, thanks.