aboutsummaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket.c')
-rw-r--r--net/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket.c b/net/socket.c
index 851edcd6b098..08e873ac1609 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -479,7 +479,7 @@ static struct socket *sock_alloc(void)
479 inode->i_uid = current_fsuid(); 479 inode->i_uid = current_fsuid();
480 inode->i_gid = current_fsgid(); 480 inode->i_gid = current_fsgid();
481 481
482 percpu_add(sockets_in_use, 1); 482 this_cpu_add(sockets_in_use, 1);
483 return sock; 483 return sock;
484} 484}
485 485
@@ -522,7 +522,7 @@ void sock_release(struct socket *sock)
522 if (rcu_dereference_protected(sock->wq, 1)->fasync_list) 522 if (rcu_dereference_protected(sock->wq, 1)->fasync_list)
523 printk(KERN_ERR "sock_release: fasync list not empty!\n"); 523 printk(KERN_ERR "sock_release: fasync list not empty!\n");
524 524
525 percpu_sub(sockets_in_use, 1); 525 this_cpu_sub(sockets_in_use, 1);
526 if (!sock->file) { 526 if (!sock->file) {
527 iput(SOCK_INODE(sock)); 527 iput(SOCK_INODE(sock));
528 return; 528 return;