]> Pileus Git - ~andy/linux/blobdiff - net/socket.c
Merge branch 'master' of git://1984.lsi.us.es/nf-next
[~andy/linux] / net / socket.c
index 2a2898ce596e343d555d3bef8bceecc81e15f651..6e0ccc09b3131112bce0970ca91d5032545b3772 100644 (file)
@@ -479,7 +479,7 @@ static struct socket *sock_alloc(void)
        inode->i_uid = current_fsuid();
        inode->i_gid = current_fsgid();
 
-       percpu_add(sockets_in_use, 1);
+       this_cpu_add(sockets_in_use, 1);
        return sock;
 }
 
@@ -522,7 +522,7 @@ void sock_release(struct socket *sock)
        if (rcu_dereference_protected(sock->wq, 1)->fasync_list)
                printk(KERN_ERR "sock_release: fasync list not empty!\n");
 
-       percpu_sub(sockets_in_use, 1);
+       this_cpu_sub(sockets_in_use, 1);
        if (!sock->file) {
                iput(SOCK_INODE(sock));
                return;