diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-09-18 19:20:35 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:31 -0400 |
commit | fec344e3f31aa911297cd3a4639432d983b1f324 (patch) | |
tree | c46deb8e54d4a1f00be47f7d34e572730b0df988 /fs/cifs/cifsglob.h | |
parent | fb308a6f22f7f4f3574dab6b36c4a3598e50cf05 (diff) |
cifs: change cifs_call_async to use smb_rqst structs
For now, none of the callers populate rq_pages. That will be done for
writes in a later patch. While we're at it, change the prototype of
setup_async_request not to need a return pointer argument. Just
return the pointer to the mid_q_entry or an ERR_PTR.
Reviewed-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 5ea50dd316c5..a81790005e57 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -201,11 +201,11 @@ struct smb_version_operations { | |||
201 | struct mid_q_entry *); | 201 | struct mid_q_entry *); |
202 | bool (*compare_fids)(struct cifsFileInfo *, struct cifsFileInfo *); | 202 | bool (*compare_fids)(struct cifsFileInfo *, struct cifsFileInfo *); |
203 | /* setup request: allocate mid, sign message */ | 203 | /* setup request: allocate mid, sign message */ |
204 | int (*setup_request)(struct cifs_ses *, struct kvec *, unsigned int, | 204 | struct mid_q_entry *(*setup_request)(struct cifs_ses *, |
205 | struct mid_q_entry **); | 205 | struct smb_rqst *); |
206 | /* setup async request: allocate mid, sign message */ | 206 | /* setup async request: allocate mid, sign message */ |
207 | int (*setup_async_request)(struct TCP_Server_Info *, struct kvec *, | 207 | struct mid_q_entry *(*setup_async_request)(struct TCP_Server_Info *, |
208 | unsigned int, struct mid_q_entry **); | 208 | struct smb_rqst *); |
209 | /* check response: verify signature, map error */ | 209 | /* check response: verify signature, map error */ |
210 | int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *, | 210 | int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *, |
211 | bool); | 211 | bool); |