aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/xfrm6_mode_ro.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-14 00:47:08 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:53:52 -0500
commitd26f398400311982d2433debae85746c348b7d58 (patch)
treecd1fd0dfbd5a51428dc92ea3dbbb864205a27fa8 /net/ipv6/xfrm6_mode_ro.c
parent0ebea8ef3559b545c37b016f44e84c3b33e47c39 (diff)
[IPSEC]: Make x->lastused an unsigned long
Currently x->lastused is u64 which means that it cannot be read/written atomically on all architectures. David Miller observed that the value stored in it is only an unsigned long which is always atomic. So based on his suggestion this patch changes the internal representation from u64 to unsigned long while the user-interface still refers to it as u64. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_mode_ro.c')
-rw-r--r--net/ipv6/xfrm6_mode_ro.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/xfrm6_mode_ro.c b/net/ipv6/xfrm6_mode_ro.c
index 4a01cb3c370b..63d5d493098a 100644
--- a/net/ipv6/xfrm6_mode_ro.c
+++ b/net/ipv6/xfrm6_mode_ro.c
@@ -54,9 +54,7 @@ static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb)
54 __skb_pull(skb, hdr_len); 54 __skb_pull(skb, hdr_len);
55 memmove(ipv6_hdr(skb), iph, hdr_len); 55 memmove(ipv6_hdr(skb), iph, hdr_len);
56 56
57 spin_lock_bh(&x->lock);
58 x->lastused = get_seconds(); 57 x->lastused = get_seconds();
59 spin_unlock_bh(&x->lock);
60 58
61 return 0; 59 return 0;
62} 60}