]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/key/af_key.c
net: convert sock.sk_refcnt from atomic_t to refcount_t
[mirror_ubuntu-artful-kernel.git] / net / key / af_key.c
index e466579c18fa3da6f8c4a5f94d60f7845e59a71d..edcf1d0f82c80bab61fbf93fb962c52c9360baad 100644 (file)
@@ -3739,7 +3739,7 @@ static int pfkey_seq_show(struct seq_file *f, void *v)
        else
                seq_printf(f, "%pK %-6d %-6u %-6u %-6u %-6lu\n",
                               s,
-                              atomic_read(&s->sk_refcnt),
+                              refcount_read(&s->sk_refcnt),
                               sk_rmem_alloc_get(s),
                               sk_wmem_alloc_get(s),
                               from_kuid_munged(seq_user_ns(f), sock_i_uid(s)),