aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-16 17:08:44 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-17 18:44:00 -0500
commit3c7bd1a14071b99d6535b710bc998ae5d3abbb66 (patch)
tree05f31758aa4d6b49b70a4af4a8df4a83588610c2 /net/decnet
parent0c4dcd58fd69aded93b0dc6917cd88b262c8aa3f (diff)
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>
Diffstat (limited to 'net/decnet')
-rw-r--r--net/decnet/dn_route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 42c9c62d3417..06c054d5ccba 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -1122,7 +1122,7 @@ make_route:
1122 if (dev_out->flags & IFF_LOOPBACK) 1122 if (dev_out->flags & IFF_LOOPBACK)
1123 flags |= RTCF_LOCAL; 1123 flags |= RTCF_LOCAL;
1124 1124
1125 rt = dst_alloc(&dn_dst_ops); 1125 rt = dst_alloc(&dn_dst_ops, 0);
1126 if (rt == NULL) 1126 if (rt == NULL)
1127 goto e_nobufs; 1127 goto e_nobufs;
1128 1128
@@ -1383,7 +1383,7 @@ static int dn_route_input_slow(struct sk_buff *skb)
1383 } 1383 }
1384 1384
1385make_route: 1385make_route:
1386 rt = dst_alloc(&dn_dst_ops); 1386 rt = dst_alloc(&dn_dst_ops, 0);
1387 if (rt == NULL) 1387 if (rt == NULL)
1388 goto e_nobufs; 1388 goto e_nobufs;
1389 1389