diff options
author | Florian Westphal <fw@strlen.de> | 2017-02-07 15:00:16 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-09 10:22:18 +0100 |
commit | 3d7d25a68ea5153d9d0d01c8c83acf644eab9704 (patch) | |
tree | 1dfb7c8066af07676209f391f9efd51e5017c356 /net/ipv4/xfrm4_policy.c | |
parent | 2b61997aa0c68ae033d066ac2d9905ada81b761a (diff) | |
download | op-kernel-dev-3d7d25a68ea5153d9d0d01c8c83acf644eab9704.zip op-kernel-dev-3d7d25a68ea5153d9d0d01c8c83acf644eab9704.tar.gz |
xfrm: policy: remove garbage_collect callback
Just call xfrm_garbage_collect_deferred() directly.
This gets rid of a write to afinfo in register/unregister and allows to
constify afinfo later on.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index 6a7ff69..77ca91d 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c @@ -219,7 +219,7 @@ static inline int xfrm4_garbage_collect(struct dst_ops *ops) { struct net *net = container_of(ops, struct net, xfrm.xfrm4_dst_ops); - xfrm4_policy_afinfo.garbage_collect(net); + xfrm_garbage_collect_deferred(net); return (dst_entries_get_slow(ops) > ops->gc_thresh * 2); } |