diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:30 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:28 -0400 |
commit | ba9ad7257ae50b8aa72a3f44da839830e065363c (patch) | |
tree | 95d7aafe1a24ef0d046bee15833854bd397882b9 /fs/cifs/cifssmb.c | |
parent | d8e050398d23ef7c019c96200b80d73f4e5cec0c (diff) |
CIFS: Move writepage to ops struct
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index f27b13ea08b8..733119dad493 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -2123,8 +2123,7 @@ async_writev_out: | |||
2123 | 2123 | ||
2124 | int | 2124 | int |
2125 | CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms, | 2125 | CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms, |
2126 | unsigned int *nbytes, struct kvec *iov, int n_vec, | 2126 | unsigned int *nbytes, struct kvec *iov, int n_vec) |
2127 | const int long_op) | ||
2128 | { | 2127 | { |
2129 | int rc = -EACCES; | 2128 | int rc = -EACCES; |
2130 | WRITE_REQ *pSMB = NULL; | 2129 | WRITE_REQ *pSMB = NULL; |
@@ -2195,8 +2194,7 @@ CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms, | |||
2195 | iov[0].iov_len = smb_hdr_len + 8; | 2194 | iov[0].iov_len = smb_hdr_len + 8; |
2196 | 2195 | ||
2197 | 2196 | ||
2198 | rc = SendReceive2(xid, tcon->ses, iov, n_vec + 1, &resp_buf_type, | 2197 | rc = SendReceive2(xid, tcon->ses, iov, n_vec + 1, &resp_buf_type, 0); |
2199 | long_op); | ||
2200 | cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); | 2198 | cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); |
2201 | if (rc) { | 2199 | if (rc) { |
2202 | cFYI(1, "Send error Write2 = %d", rc); | 2200 | cFYI(1, "Send error Write2 = %d", rc); |