]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: broadly use fib6_info_hold() helper
authorEric Dumazet <edumazet@google.com>
Tue, 23 Apr 2019 01:35:02 +0000 (18:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2019 00:19:48 +0000 (17:19 -0700)
commit1e51cff58f2613ba52cd1a51824ca8b1d94e5e68
treee2c3c14702735b438d128f3010d74836b94465fd
parent38dfd0439b0ba73d33f3acd787fbcdada7196472
ipv6: broadly use fib6_info_hold() helper

Instead of using atomic_inc(), prefer fib6_info_hold()
so that upcoming refcount_t conversion is simpler.

Only fib6_info_alloc() is using atomic_set() since we
just allocated a new object.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Wei Wang <weiwan@google.com>
Acked-by: Wei Wang <weiwan@google.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c