diff options
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | net/ipv4/fib_trie.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index f874e1811eab..90654bb64e21 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -1954,16 +1954,10 @@ static void trie_collect_stats(struct trie *t, struct trie_stat *s) | |||
1954 | hlist_for_each_entry_rcu(li, &n->list, hlist) | 1954 | hlist_for_each_entry_rcu(li, &n->list, hlist) |
1955 | ++s->prefixes; | 1955 | ++s->prefixes; |
1956 | } else { | 1956 | } else { |
1957 | unsigned long i; | ||
1958 | |||
1959 | s->tnodes++; | 1957 | s->tnodes++; |
1960 | if (n->bits < MAX_STAT_DEPTH) | 1958 | if (n->bits < MAX_STAT_DEPTH) |
1961 | s->nodesizes[n->bits]++; | 1959 | s->nodesizes[n->bits]++; |
1962 | 1960 | s->nullpointers += n->empty_children; | |
1963 | for (i = tnode_child_length(n); i--;) { | ||
1964 | if (!rcu_access_pointer(n->child[i])) | ||
1965 | s->nullpointers++; | ||
1966 | } | ||
1967 | } | 1961 | } |
1968 | } | 1962 | } |
1969 | rcu_read_unlock(); | 1963 | rcu_read_unlock(); |