diff options
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index e0473f61693f..d0b5fdee50a2 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1088,6 +1088,10 @@ static inline struct cg_proto *parent_cg_proto(struct proto *proto, | |||
1088 | } | 1088 | } |
1089 | #endif | 1089 | #endif |
1090 | 1090 | ||
1091 | static inline bool sk_stream_is_writeable(const struct sock *sk) | ||
1092 | { | ||
1093 | return sk_stream_wspace(sk) >= sk_stream_min_wspace(sk); | ||
1094 | } | ||
1091 | 1095 | ||
1092 | static inline bool sk_has_memory_pressure(const struct sock *sk) | 1096 | static inline bool sk_has_memory_pressure(const struct sock *sk) |
1093 | { | 1097 | { |