From: Eric Dumazet Date: Tue, 23 Jul 2013 03:26:31 +0000 (-0700) Subject: net: add sk_stream_is_writeable() helper X-Git-Tag: v3.12-rc1~132^2~464 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64dc61306ce7da370833289739e2f52dfc6b37ba;p=pandora-kernel.git net: add sk_stream_is_writeable() helper Several call sites use the hardcoded following condition : sk_stream_wspace(sk) >= sk_stream_min_wspace(sk) Lets use a helper because TCP_NOTSENT_LOWAT support will change this condition for TCP sockets. Signed-off-by: Eric Dumazet Cc: Neal Cardwell Cc: Yuchung Cheng Acked-by: Neal Cardwell Signed-off-by: David S. Miller --- Reading git-diff-tree failed