]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
net/sock: Update memalloc_socks static key to modern api
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 8 May 2018 16:06:59 +0000 (09:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 19:13:34 +0000 (15:13 -0400)
commita7950ae8213cf38343fd27ad1fb58f3f04e3130f
treee3863a021b600eba3db0b21e115bea47258b3e0a
parent5263a98f162f7a46e1292632c87f1e3444eb8fbf
net/sock: Update memalloc_socks static key to modern api

No changes in refcount semantics -- key init is false; replace

static_key_slow_inc|dec   with   static_branch_inc|dec
static_key_false          with   static_branch_unlikely

Added a '_key' suffix to memalloc_socks, for better self
documentation.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c