lkml.org 
[lkml]   [2002]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] smbfs compile fixes for latest BK
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.032 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site