cifs: eliminate is_multi_rsp parm to find_cifs_mid
commitffc00e27aa5d343eb71068c185cdbd65871ccdce
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:13 +0000 (19 15:29 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:13 +0000 (19 15:29 -0400)
treea643034e084097d4b41b5c7f9511f5e262133985
parentea1f4502fc939b64807f9ab0eca259321047fe83
cifs: eliminate is_multi_rsp parm to find_cifs_mid

Change find_cifs_mid to only return NULL if a mid could not be found.
If we got part of a multi-part T2 response, then coalesce it and still
return the mid. The caller can determine the T2 receive status from
the flags in the mid.

With this change, there is no need to pass a pointer to "length" as
well so just pass by value. If a mid is found, then we can just mark
it as malformed. If one isn't found, then the value of "length" won't
change anyway.

Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/connect.c