Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281966
b: refs/heads/master
c: 475f1b5
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and David S. Miller committed Jan 9, 2012
1 parent 80931f6 commit 2778405
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b189e810619a676e6b931a942a3e8387f3d39c21
refs/heads/master: 475f1b52645a29936b9df1d8fcd45f7e56bd4a9f
6 changes: 0 additions & 6 deletions trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -1103,12 +1103,6 @@ sk_sockets_allocated_read_positive(struct sock *sk)
return percpu_counter_sum_positive(prot->sockets_allocated);
}

static inline void sk_update_clone(const struct sock *sk, struct sock *newsk)
{
if (mem_cgroup_sockets_enabled && sk->sk_cgrp)
sock_update_memcg(newsk);
}

static inline int
proto_sockets_allocated_sum_positive(struct proto *prot)
{
Expand Down
6 changes: 6 additions & 0 deletions trunk/net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,12 @@ void sk_release_kernel(struct sock *sk)
}
EXPORT_SYMBOL(sk_release_kernel);

static void sk_update_clone(const struct sock *sk, struct sock *newsk)
{
if (mem_cgroup_sockets_enabled && sk->sk_cgrp)
sock_update_memcg(newsk);
}

/**
* sk_clone_lock - clone a socket, and lock its clone
* @sk: the socket to clone
Expand Down

0 comments on commit 2778405

Please sign in to comment.