Commit f5026fabda54e5ab5d469d8cfac5f46b4d321ce9
Committed by
David S. Miller
1 parent
8a4a50f98b
Exists in
master
and in
7 other branches
[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>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
net/ipv4/fib_trie.c
... | ... | @@ -299,10 +299,10 @@ |
299 | 299 | WARN_ON(tn && tn->pos+tn->bits > 32); |
300 | 300 | } |
301 | 301 | |
302 | -static int halve_threshold = 25; | |
303 | -static int inflate_threshold = 50; | |
304 | -static int halve_threshold_root = 8; | |
305 | -static int inflate_threshold_root = 15; | |
302 | +static const int halve_threshold = 25; | |
303 | +static const int inflate_threshold = 50; | |
304 | +static const int halve_threshold_root = 8; | |
305 | +static const int inflate_threshold_root = 15; | |
306 | 306 | |
307 | 307 | |
308 | 308 | static void __alias_free_mem(struct rcu_head *head) |