diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-06-17 19:06:12 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-18 00:29:12 -0700 |
commit | 81e2a3d5b75cbf0b42428b9d5a7cc7c85be9e7a7 (patch) | |
tree | cac92ad222a84f30e129b569cb489652a0ca44ef /net/atm/proc.c | |
parent | 31e6d363abcd0d05766c82f1a9c905a4c974a199 (diff) | |
download | kernel_samsung_tuna-81e2a3d5b75cbf0b42428b9d5a7cc7c85be9e7a7.zip kernel_samsung_tuna-81e2a3d5b75cbf0b42428b9d5a7cc7c85be9e7a7.tar.gz kernel_samsung_tuna-81e2a3d5b75cbf0b42428b9d5a7cc7c85be9e7a7.tar.bz2 |
atm: sk_wmem_alloc initial value is one
commit 2b85a34e911bf483c27cfdd124aeb1605145dc80
(net: No more expensive sock_hold()/sock_put() on each tx)
changed initial sk_wmem_alloc value.
This broke net/atm since this protocol assumed a null
initial value. This patch makes necessary changes.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/proc.c')
-rw-r--r-- | net/atm/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/atm/proc.c b/net/atm/proc.c index e7b3b273..38de5ff 100644 --- a/net/atm/proc.c +++ b/net/atm/proc.c @@ -204,8 +204,8 @@ static void vcc_info(struct seq_file *seq, struct atm_vcc *vcc) seq_printf(seq, "%3d", sk->sk_family); } seq_printf(seq, " %04lx %5d %7d/%7d %7d/%7d [%d]\n", vcc->flags, sk->sk_err, - atomic_read(&sk->sk_wmem_alloc), sk->sk_sndbuf, - atomic_read(&sk->sk_rmem_alloc), sk->sk_rcvbuf, + sk_wmem_alloc_get(sk), sk->sk_sndbuf, + sk_rmem_alloc_get(sk), sk->sk_rcvbuf, atomic_read(&sk->sk_refcnt)); } |