diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/stream.c b/net/core/stream.c index 5586879bb9b3..bf188ffdbdbe 100644 --- a/net/core/stream.c +++ b/net/core/stream.c | |||
@@ -196,7 +196,7 @@ EXPORT_SYMBOL(sk_stream_error); | |||
196 | 196 | ||
197 | void __sk_stream_mem_reclaim(struct sock *sk) | 197 | void __sk_stream_mem_reclaim(struct sock *sk) |
198 | { | 198 | { |
199 | atomic_sub(sk->sk_forward_alloc / SK_STREAM_MEM_QUANTUM, | 199 | atomic_sub(sk->sk_forward_alloc >> SK_STREAM_MEM_QUANTUM_SHIFT, |
200 | sk->sk_prot->memory_allocated); | 200 | sk->sk_prot->memory_allocated); |
201 | sk->sk_forward_alloc &= SK_STREAM_MEM_QUANTUM - 1; | 201 | sk->sk_forward_alloc &= SK_STREAM_MEM_QUANTUM - 1; |
202 | if (*sk->sk_prot->memory_pressure && | 202 | if (*sk->sk_prot->memory_pressure && |