Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121507
b: refs/heads/master
c: 93adcc8
h: refs/heads/master
i:
  121505: 510402a
  121503: bdc2676
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Oct 28, 2008
1 parent 3efebf3 commit 9b5a132
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: def8b4faff5ca349beafbbfeb2c51f3602a6ef3a
refs/heads/master: 93adcc80f3288f1827baf6f821af818f6eeef7f9
2 changes: 0 additions & 2 deletions trunk/net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,6 @@ struct neigh_parms *neigh_parms_alloc(struct net_device *dev,
if (p) {
p->tbl = tbl;
atomic_set(&p->refcnt, 1);
INIT_RCU_HEAD(&p->rcu_head);
p->reachable_time =
neigh_rand_reach_time(p->base_reachable_time);

Expand Down Expand Up @@ -1412,7 +1411,6 @@ void neigh_table_init_no_netlink(struct neigh_table *tbl)
tbl->parms.net = &init_net;
#endif
atomic_set(&tbl->parms.refcnt, 1);
INIT_RCU_HEAD(&tbl->parms.rcu_head);
tbl->parms.reachable_time =
neigh_rand_reach_time(tbl->parms.base_reachable_time);

Expand Down
2 changes: 0 additions & 2 deletions trunk/net/core/net_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ static __net_init int setup_net(struct net *net)
goto out;

ng->len = INITIAL_NET_GEN_PTRS;
INIT_RCU_HEAD(&ng->rcu);
rcu_assign_pointer(net->gen, ng);

error = 0;
Expand Down Expand Up @@ -446,7 +445,6 @@ int net_assign_generic(struct net *net, int id, void *data)
*/

ng->len = id;
INIT_RCU_HEAD(&ng->rcu);
memcpy(&ng->ptr, &old_ng->ptr, old_ng->len);

rcu_assign_pointer(net->gen, ng);
Expand Down
1 change: 0 additions & 1 deletion trunk/net/ipv4/cipso_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ int cipso_v4_doi_add(struct cipso_v4_doi *doi_def)
}

atomic_set(&doi_def->refcount, 1);
INIT_RCU_HEAD(&doi_def->rcu);

spin_lock(&cipso_v4_doi_list_lock);
if (cipso_v4_doi_search(doi_def->doi) != NULL)
Expand Down
9 changes: 1 addition & 8 deletions trunk/net/ipv4/devinet.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,7 @@ static inline void devinet_sysctl_unregister(struct in_device *idev)

static struct in_ifaddr *inet_alloc_ifa(void)
{
struct in_ifaddr *ifa = kzalloc(sizeof(*ifa), GFP_KERNEL);

if (ifa) {
INIT_RCU_HEAD(&ifa->rcu_head);
}

return ifa;
return kzalloc(sizeof(struct in_ifaddr), GFP_KERNEL);
}

static void inet_rcu_free_ifa(struct rcu_head *head)
Expand Down Expand Up @@ -161,7 +155,6 @@ static struct in_device *inetdev_init(struct net_device *dev)
in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL);
if (!in_dev)
goto out;
INIT_RCU_HEAD(&in_dev->rcu_head);
memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt,
sizeof(in_dev->cnf));
in_dev->cnf.sysctl = NULL;
Expand Down
1 change: 0 additions & 1 deletion trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,6 @@ void ip_rt_redirect(__be32 old_gw, __be32 daddr, __be32 new_gw,

/* Copy all the information. */
*rt = *rth;
INIT_RCU_HEAD(&rt->u.dst.rcu_head);
rt->u.dst.__use = 1;
atomic_set(&rt->u.dst.__refcnt, 1);
rt->u.dst.child = NULL;
Expand Down

0 comments on commit 9b5a132

Please sign in to comment.