* [PATCH] fib_trie: use seq_file_net rather than seq->private
@ 2014-05-30 19:34 David Ahern
2014-06-02 23:43 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: David Ahern @ 2014-05-30 19:34 UTC (permalink / raw)
To: netdev
Cc: David Ahern, David S. Miller, Alexey Kuznetsov, James Morris,
Hideaki YOSHIFUJI, Patrick McHardy
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>
---
net/ipv4/fib_trie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
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,
--
1.8.5.2 (Apple Git-48)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fib_trie: use seq_file_net rather than seq->private
2014-05-30 19:34 [PATCH] fib_trie: use seq_file_net rather than seq->private David Ahern
@ 2014-06-02 23:43 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-06-02 23:43 UTC (permalink / raw)
To: dsahern; +Cc: netdev, kuznet, jmorris, yoshfuji, kaber
From: David Ahern <dsahern@gmail.com>
Date: Fri, 30 May 2014 13:34:39 -0600
> Make fib_triestat_seq_show consistent with other /proc/net files and
> use seq_file_net.
>
> Signed-off-by: David Ahern <dsahern@gmail.com>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-02 23:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-30 19:34 [PATCH] fib_trie: use seq_file_net rather than seq->private David Ahern
2014-06-02 23:43 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).