Ilpo Järvinen
1f0fa15432
net/sunrpc/xprtsock.c: some common code found
...
$ diff-funcs xs_udp_write_space net/sunrpc/xprtsock.c
net/sunrpc/xprtsock.c xs_tcp_write_space
--- net/sunrpc/xprtsock.c:xs_udp_write_space()
+++ net/sunrpc/xprtsock.c:xs_tcp_write_space()
@@ -1,4 +1,4 @@
- * xs_udp_write_space - callback invoked when socket buffer space
+ * xs_tcp_write_space - callback invoked when socket buffer space
* becomes available
* @sk: socket whose state has changed
*
@@ -7,12 +7,12 @@
* progress, otherwise we'll waste resources thrashing kernel_sendmsg
* with a bunch of small requests.
*/
-static void xs_udp_write_space(struct sock *sk)
+static void xs_tcp_write_space(struct sock *sk)
{
read_lock(&sk->sk_callback_lock);
- /* from net/core/sock.c:sock_def_write_space */
- if (sock_writeable(sk)) {
+ /* from net/core/stream.c:sk_stream_write_space */
+ if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk)) {
struct socket *sock;
struct rpc_xprt *xprt;
$ codiff net/sunrpc/xprtsock.o net/sunrpc/xprtsock.o.new
net/sunrpc/xprtsock.c:
xs_tcp_write_space | -163
xs_udp_write_space | -163
2 functions changed, 326 bytes removed
net/sunrpc/xprtsock.c:
xs_write_space | +179
1 function changed, 179 bytes added
net/sunrpc/xprtsock.o.new:
3 functions changed, 179 bytes added, 326 bytes removed, diff: -147
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-02-06 23:48:33 -08:00
..
2009-01-19 16:20:15 -08:00
2009-02-01 00:45:17 -08:00
2009-02-01 00:45:17 -08:00
2009-02-01 00:45:17 -08:00
2009-01-21 14:02:00 -08:00
2009-02-06 23:47:14 -08:00
2009-01-07 17:23:17 -08:00
2009-02-01 00:45:17 -08:00
2009-02-01 00:45:17 -08:00
2009-02-05 21:26:52 -08:00
2009-01-04 17:29:21 -08:00
2009-01-21 14:34:05 -08:00
2009-02-01 00:45:17 -08:00
2009-02-01 00:45:17 -08:00
2009-02-01 00:45:17 -08:00
2008-11-23 23:24:32 -08:00
2009-02-06 23:46:51 -08:00
2009-02-06 23:48:01 -08:00
2009-02-01 00:45:17 -08:00
2009-02-01 00:45:17 -08:00
2009-01-06 10:44:34 -08:00
2009-01-25 20:49:14 -08:00
2009-02-01 00:45:17 -08:00
2009-01-30 13:38:28 -05:00
2009-02-04 16:55:27 -08:00
2008-12-31 12:54:11 -05:00
2009-02-05 23:56:36 -08:00
2009-01-21 14:02:02 -08:00
2009-02-01 01:53:29 -08:00
2009-02-01 00:45:17 -08:00
2009-01-04 17:11:24 -08:00
2009-01-21 14:02:04 -08:00
2008-12-28 12:49:40 -08:00
2009-02-01 01:13:22 -08:00
2009-02-01 00:45:17 -08:00
2009-02-06 23:48:33 -08:00
2009-01-11 00:06:33 -08:00
2008-12-31 18:07:37 -05:00
2008-11-20 04:26:21 -08:00
2009-02-05 23:56:36 -08:00
2009-02-03 12:41:58 -08:00
2009-02-01 00:45:17 -08:00
2009-01-20 09:49:51 -08:00
2008-11-19 18:49:57 -08:00
2009-01-26 21:03:33 -08:00
2009-01-07 10:00:17 -08:00
2009-01-14 14:15:27 +01:00
2008-07-27 09:45:34 -07:00