diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2010-01-17 06:32:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-18 06:24:49 +0300 |
commit | 0a931acfd19faf13129a22a46c06f330ecc2a4a3 (patch) | |
tree | 10746982180bb2db06d6068b6d34a9548ff36490 /net | |
parent | d00c362f1b0ff54161e0a42b4554ac621a9ef92d (diff) | |
download | linux-0a931acfd19faf13129a22a46c06f330ecc2a4a3.tar.xz |
ipv4: don't remove /proc/net/rt_acct
/proc/net/rt_acct is not created if NET_CLS_ROUTE=n.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index e446496f564f..d62b05d33384 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -586,7 +586,9 @@ static void __net_exit ip_rt_do_proc_exit(struct net *net) { remove_proc_entry("rt_cache", net->proc_net_stat); remove_proc_entry("rt_cache", net->proc_net); +#ifdef CONFIG_NET_CLS_ROUTE remove_proc_entry("rt_acct", net->proc_net); +#endif } static struct pernet_operations ip_rt_proc_ops __net_initdata = { |