* [PATCH] smbfs compile fixes for latest BK
@ 2002-10-15 6:28 Matt Reppert
0 siblings, 0 replies; only message in thread
From: Matt Reppert @ 2002-10-15 6:28 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds, davem, akpm
Compiled, no warnings, but not tested (no means to do so ATM); however, these
seem to be in line with changes in the latest BK elsewhere in this file.
Against 2.5.42-mm3.
--- linux-2.5-orig/fs/smbfs/sock.c 2002-10-15 01:03:03 -0500
+++ linux-2.5/fs/smbfs/sock.c 2002-10-15 01:08:50 -0500
@@ -58,7 +58,7 @@
iov.iov_len = size;
init_sync_kiocb(&iocb, NULL);
- si = kiocb_to_siocb(iocb);
+ si = kiocb_to_siocb(&iocb);
si->sock = socket;
si->scm = &si->async_scm;
si->msg = &msg;
@@ -327,7 +327,7 @@
rlen = PAGE_SIZE;
init_sync_kiocb(&iocb, NULL);
- si = kiocb_to_siocb(iocb);
+ si = kiocb_to_siocb(&iocb);
si->sock = sock;
si->scm = &si->async_scm;
si->msg = &msg;
@@ -338,7 +338,7 @@
result = sock->ops->recvmsg(&iocb, sock, &msg, rlen, flags, si->scm);
if (result >= 0)
- scm_recv(sock, &msg, &scm, flags);
+ scm_recv(sock, &msg, si->scm, flags);
if (-EIOCBQUEUED == result)
result = wait_on_sync_kiocb(&iocb);
@@ -366,6 +366,8 @@
smb_receive(struct smb_sb_info *server, struct smb_request *req)
{
struct socket *sock;
+ struct kiocb iocb;
+ struct sock_iocb *si;
unsigned int flags;
struct iovec iov[4];
struct msghdr msg;
@@ -397,7 +399,7 @@
rlen = req->rq_rlen;
init_sync_kiocb(&iocb, NULL);
- si = kiocb_to_siocb(iocb);
+ si = kiocb_to_siocb(&iocb);
si->sock = sock;
si->scm = &si->async_scm;
si->msg = &msg;
@@ -464,7 +466,7 @@
smb_move_iov(&msg, iov, req->rq_bytes_sent);
init_sync_kiocb(&iocb, NULL);
- si = kiocb_to_siocb(iocb);
+ si = kiocb_to_siocb(&iocb);
si->scm = &si->async_scm;
si->sock = sock;
si->msg = &msg;
@@ -476,7 +478,7 @@
if (result >= 0) {
result = sock->ops->sendmsg(&iocb, sock, &msg, slen, si->scm);
if (-EIOCBQUEUED != result)
- scm_destroy(&scm);
+ scm_destroy(si->scm);
}
if (-EIOCBQUEUED == result)
result = wait_on_sync_kiocb(&iocb);
Matt
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-15 6:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-15 6:28 [PATCH] smbfs compile fixes for latest BK Matt Reppert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).