[PATCH next 50/84] ipvs: Pass ipvs not net to estimation_timer

2015-09-21 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" 
---
 net/netfilter/ipvs/ip_vs_est.c | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_est.c b/net/netfilter/ipvs/ip_vs_est.c
index 638a301f7ee4..c86dc456c8f4 100644
--- a/net/netfilter/ipvs/ip_vs_est.c
+++ b/net/netfilter/ipvs/ip_vs_est.c
@@ -102,10 +102,8 @@ static void estimation_timer(unsigned long arg)
struct ip_vs_estimator *e;
struct ip_vs_stats *s;
u64 rate;
-   struct net *net = (struct net *)arg;
-   struct netns_ipvs *ipvs;
+   struct netns_ipvs *ipvs = (struct netns_ipvs *)arg;
 
-   ipvs = net_ipvs(net);
spin_lock(>est_lock);
list_for_each_entry(e, >est_list, list) {
s = container_of(e, struct ip_vs_stats, est);
@@ -196,7 +194,7 @@ int __net_init ip_vs_estimator_net_init(struct net *net)
 
INIT_LIST_HEAD(>est_list);
spin_lock_init(>est_lock);
-   setup_timer(>est_timer, estimation_timer, (unsigned long)net);
+   setup_timer(>est_timer, estimation_timer, (unsigned long)ipvs);
mod_timer(>est_timer, jiffies + 2 * HZ);
return 0;
 }
-- 
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH next 50/84] ipvs: Pass ipvs not net to estimation_timer

2015-09-20 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" 
---
 net/netfilter/ipvs/ip_vs_est.c | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_est.c b/net/netfilter/ipvs/ip_vs_est.c
index 638a301f7ee4..c86dc456c8f4 100644
--- a/net/netfilter/ipvs/ip_vs_est.c
+++ b/net/netfilter/ipvs/ip_vs_est.c
@@ -102,10 +102,8 @@ static void estimation_timer(unsigned long arg)
struct ip_vs_estimator *e;
struct ip_vs_stats *s;
u64 rate;
-   struct net *net = (struct net *)arg;
-   struct netns_ipvs *ipvs;
+   struct netns_ipvs *ipvs = (struct netns_ipvs *)arg;
 
-   ipvs = net_ipvs(net);
spin_lock(>est_lock);
list_for_each_entry(e, >est_list, list) {
s = container_of(e, struct ip_vs_stats, est);
@@ -196,7 +194,7 @@ int __net_init ip_vs_estimator_net_init(struct net *net)
 
INIT_LIST_HEAD(>est_list);
spin_lock_init(>est_lock);
-   setup_timer(>est_timer, estimation_timer, (unsigned long)net);
+   setup_timer(>est_timer, estimation_timer, (unsigned long)ipvs);
mod_timer(>est_timer, jiffies + 2 * HZ);
return 0;
 }
-- 
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html