]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV4]: Thresholds in fib_trie.c are used as consts, so make them const.
authorDenis V. Lunev <den@openvz.org>
Thu, 13 Dec 2007 17:47:57 +0000 (09:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:57:57 +0000 (14:57 -0800)
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>
net/ipv4/fib_trie.c

index 9126eea71670b59b627c6605d5ca8cce034bcda4..a842204df7baf79a2060f923d3e2885291fc2ab2 100644 (file)
@@ -299,10 +299,10 @@ static inline void check_tnode(const struct tnode *tn)
        WARN_ON(tn && tn->pos+tn->bits > 32);
 }
 
-static int halve_threshold = 25;
-static int inflate_threshold = 50;
-static int halve_threshold_root = 8;
-static int inflate_threshold_root = 15;
+static const int halve_threshold = 25;
+static const int inflate_threshold = 50;
+static const int halve_threshold_root = 8;
+static const int inflate_threshold_root = 15;
 
 
 static void __alias_free_mem(struct rcu_head *head)