net: mm_account_pinned_pages() optimization
authorEric Dumazet <edumazet@google.com>
Tue, 15 Nov 2022 09:10:56 +0000 (09:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 12:42:00 +0000 (12:42 +0000)
commit57fc05e8e82d015d5d58572e146ac8579a66efea
tree8da6480ee840cbb9a9913e0d516a35a0568ea8db
parent8c55facecd7ade835287298ce325f930d888d8ec
net: mm_account_pinned_pages() optimization

Adopt atomic_long_try_cmpxchg() in mm_account_pinned_pages()
as it is slightly more efficient.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c