aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2007-12-13 12:47:57 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:57:57 -0500
commitf5026fabda54e5ab5d469d8cfac5f46b4d321ce9 (patch)
treea4cc511175bede5dcfd1d1979086ee688d7e7e73
parent8a4a50f98bc13670bee94c40b94bc169e1263cd9 (diff)
[IPV4]: Thresholds in fib_trie.c are used as consts, so make them const.
There are several thresholds for trie fib hash management. They are used in the code as a constants. Make them constants from the compiler point of view. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/fib_trie.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 9126eea71670..a842204df7ba 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -299,10 +299,10 @@ static inline void check_tnode(const struct tnode *tn)
299 WARN_ON(tn && tn->pos+tn->bits > 32); 299 WARN_ON(tn && tn->pos+tn->bits > 32);
300} 300}
301 301
302static int halve_threshold = 25; 302static const int halve_threshold = 25;
303static int inflate_threshold = 50; 303static const int inflate_threshold = 50;
304static int halve_threshold_root = 8; 304static const int halve_threshold_root = 8;
305static int inflate_threshold_root = 15; 305static const int inflate_threshold_root = 15;
306 306
307 307
308static void __alias_free_mem(struct rcu_head *head) 308static void __alias_free_mem(struct rcu_head *head)