patch-2.1.118 linux/net/sunrpc/xprt.c
Next file: linux/net/wanrouter/wanproc.c
Previous file: linux/net/sunrpc/sched.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Aug 25 16:09:49 1998
- Orig file:
v2.1.117/linux/net/sunrpc/xprt.c
- Orig date:
Thu Aug 20 17:05:19 1998
diff -u --recursive --new-file v2.1.117/linux/net/sunrpc/xprt.c linux/net/sunrpc/xprt.c
@@ -140,9 +140,8 @@
* Adjust the iovec to move on 'n' bytes
*/
-extern inline void xprt_move_iov(struct msghdr *msg, int amount)
+extern inline void xprt_move_iov(struct msghdr *msg, struct iovec *niv, int amount)
{
- struct iovec niv[MAX_IOVEC];
struct iovec *iv=msg->msg_iov;
/*
@@ -187,6 +186,7 @@
struct msghdr msg;
mm_segment_t oldfs;
int result;
+ struct iovec niv[MAX_IOVEC];
xprt_pktdump("packet data:",
xprt->snd_buf.io_vec->iov_base,
@@ -202,7 +202,7 @@
/* Dont repeat bytes */
if(xprt->snd_sent)
- xprt_move_iov(&msg, xprt->snd_sent);
+ xprt_move_iov(&msg, niv, xprt->snd_sent);
oldfs = get_fs(); set_fs(get_ds());
result = sock_sendmsg(sock, &msg, xprt->snd_buf.io_len);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov