netfilter: nf_conntrack: one less atomic op in nf_ct_expect_insert()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 16 Nov 2010 09:19:18 +0000 (10:19 +0100)
committerPatrick McHardy <kaber@trash.net>
Tue, 16 Nov 2010 09:19:18 +0000 (10:19 +0100)
commit3bfd45f93c8bca7a5dc955235ff083602d95aa43
treebe31177ae09fec69a12a32e935e6395ef4fb5cdf
parentc5d277d29ad1ae9add8d6984025ccd2e835971ce
netfilter: nf_conntrack: one less atomic op in nf_ct_expect_insert()

Instead of doing atomic_inc(&exp->use) twice,
call atomic_add(2, &exp->use);

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nf_conntrack_expect.c