net: Add initial_ref arg to dst_alloc().
authorDavid S. Miller <davem@davemloft.net>
Wed, 16 Feb 2011 22:08:44 +0000 (14:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Feb 2011 23:44:00 +0000 (15:44 -0800)
commit3c7bd1a14071b99d6535b710bc998ae5d3abbb66
tree05f31758aa4d6b49b70a4af4a8df4a83588610c2
parent0c4dcd58fd69aded93b0dc6917cd88b262c8aa3f
net: Add initial_ref arg to dst_alloc().

This allows avoiding multiple writes to the initial __refcnt.

The most simplest cases of wanting an initial reference of "1"
in ipv4 and ipv6 have been converted, the rest have been left
along and kept at the existing "0".

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h
net/core/dst.c
net/decnet/dn_route.c
net/ipv4/route.c
net/ipv6/route.c
net/xfrm/xfrm_policy.c