aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-03-23 14:28:03 -0400
committerJeff Layton <jlayton@redhat.com>2012-03-23 14:28:03 -0400
commit7c9421e1a9ce8d17816f480c3a5b4f2609442cd5 (patch)
tree6131acccc9898629df21a5c5a3e75ccf717bf947 /fs/cifs/cifssmb.c
parent243d04b6e6de7fd08578fffd28b890c0200a2ca5 (diff)
CIFS: Change mid_q_entry structure fields
to be protocol-unspecific and big enough to keep both CIFS and SMB2 values. Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index c45d445e2094..f0b1c59a3bb3 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -1467,7 +1467,7 @@ cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid)
1467 pgoff_t eof_index; 1467 pgoff_t eof_index;
1468 struct page *page, *tpage; 1468 struct page *page, *tpage;
1469 1469
1470 cFYI(1, "%s: mid=%u offset=%llu bytes=%u", __func__, 1470 cFYI(1, "%s: mid=%llu offset=%llu bytes=%u", __func__,
1471 mid->mid, rdata->offset, rdata->bytes); 1471 mid->mid, rdata->offset, rdata->bytes);
1472 1472
1473 /* 1473 /*
@@ -1665,10 +1665,10 @@ cifs_readv_callback(struct mid_q_entry *mid)
1665 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); 1665 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink);
1666 struct TCP_Server_Info *server = tcon->ses->server; 1666 struct TCP_Server_Info *server = tcon->ses->server;
1667 1667
1668 cFYI(1, "%s: mid=%u state=%d result=%d bytes=%u", __func__, 1668 cFYI(1, "%s: mid=%llu state=%d result=%d bytes=%u", __func__,
1669 mid->mid, mid->midState, rdata->result, rdata->bytes); 1669 mid->mid, mid->mid_state, rdata->result, rdata->bytes);
1670 1670
1671 switch (mid->midState) { 1671 switch (mid->mid_state) {
1672 case MID_RESPONSE_RECEIVED: 1672 case MID_RESPONSE_RECEIVED:
1673 /* result already set, check signature */ 1673 /* result already set, check signature */
1674 if (server->sec_mode & 1674 if (server->sec_mode &
@@ -2086,7 +2086,7 @@ cifs_writedata_alloc(unsigned int nr_pages)
2086} 2086}
2087 2087
2088/* 2088/*
2089 * Check the midState and signature on received buffer (if any), and queue the 2089 * Check the mid_state and signature on received buffer (if any), and queue the
2090 * workqueue completion task. 2090 * workqueue completion task.
2091 */ 2091 */
2092static void 2092static void
@@ -2097,7 +2097,7 @@ cifs_writev_callback(struct mid_q_entry *mid)
2097 unsigned int written; 2097 unsigned int written;
2098 WRITE_RSP *smb = (WRITE_RSP *)mid->resp_buf; 2098 WRITE_RSP *smb = (WRITE_RSP *)mid->resp_buf;
2099 2099
2100 switch (mid->midState) { 2100 switch (mid->mid_state) {
2101 case MID_RESPONSE_RECEIVED: 2101 case MID_RESPONSE_RECEIVED:
2102 wdata->result = cifs_check_receive(mid, tcon->ses->server, 0); 2102 wdata->result = cifs_check_receive(mid, tcon->ses->server, 0);
2103 if (wdata->result != 0) 2103 if (wdata->result != 0)