Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22220
b: refs/heads/master
c: e9df7d7
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin LaHaise authored and David S. Miller committed Mar 21, 2006
1 parent e0ff113 commit 0d42177
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 231d06ae826664b83369166449144304859a62fa
refs/heads/master: e9df7d7f584666533b1bdfcf5c60a43d64689198
10 changes: 5 additions & 5 deletions trunk/net/unix/af_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,15 +1427,15 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock,
while(sent < len)
{
/*
* Optimisation for the fact that under 0.01% of X messages typically
* need breaking up.
* Optimisation for the fact that under 0.01% of X
* messages typically need breaking up.
*/

size=len-sent;
size = len-sent;

/* Keep two messages in the pipe so it schedules better */
if (size > sk->sk_sndbuf / 2 - 64)
size = sk->sk_sndbuf / 2 - 64;
if (size > ((sk->sk_sndbuf >> 1) - 64))
size = (sk->sk_sndbuf >> 1) - 64;

if (size > SKB_MAX_ALLOC)
size = SKB_MAX_ALLOC;
Expand Down

0 comments on commit 0d42177

Please sign in to comment.