OSDN Git Service

ipv6: replace global gc_args with local variable
authorMichal Kubeček <mkubecek@suse.cz>
Tue, 8 Mar 2016 13:44:25 +0000 (14:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Mar 2016 20:16:50 +0000 (15:16 -0500)
commit3570df914f9cae15df7f6ba472a51eaf798fdb46
treee08b44c0e8312a5657e211bcb1c157d116132ee0
parent02daec7c2274c03ac84f1cbe41204ad8f8e3ca6c
ipv6: replace global gc_args with local variable

Global variable gc_args is only used in fib6_run_gc() and functions
called from it. As fib6_run_gc() makes sure there is at most one
instance of fib6_clean_all() running at any moment, we can replace
gc_args with a local variable which will be needed once multiple
instances (per netns) of garbage collector are allowed.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c