OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 2.6.25] IPv4: thresholds in fib_trie.c are not modified, make them const
[PATCH 2.6.25] IPv4: thresholds in fib_trie.c are not modified, make them const [message #24937] Wed, 12 December 2007 11:05 Go to previous message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
IPv4: thresholds in fib_trie.c are not modified, make them const

Signed-off-by: Denis V. Lunev <den@openvz.org>
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 45a6e4d..57a2c46 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)
 	WARN_ON(tn && tn->pos+tn->bits > 32);
 }
 
-static int halve_threshold = 25;
-static int inflate_threshold = 50;
-static int halve_threshold_root = 15;
-static int inflate_threshold_root = 25;
+static const int halve_threshold = 25;
+static const int inflate_threshold = 50;
+static const int halve_threshold_root = 15;
+static const int inflate_threshold_root = 25;
 
 static void __alias_free_mem(struct rcu_head *head)
 {
 
Read Message
Read Message
Read Message
Previous Topic: [RFC] [PATCH -mm] reiser4: replace uid==0 check with capability
Next Topic: [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h.
Goto Forum:
  


Current Time: Wed Sep 10 19:54:50 GMT 2025

Total time taken to generate the page: 0.09682 seconds