summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorJeff Layton2011-10-19 21:29:13 +0200
committerJeff Layton2011-10-19 21:29:13 +0200
commitffc00e27aa5d343eb71068c185cdbd65871ccdce (patch)
treea643034e084097d4b41b5c7f9511f5e262133985 /fs/cifs/cifsglob.h
parentcifs: move mid finding into separate routine (diff)
downloadkernel-qcow2-linux-ffc00e27aa5d343eb71068c185cdbd65871ccdce.tar.gz
kernel-qcow2-linux-ffc00e27aa5d343eb71068c185cdbd65871ccdce.tar.xz
kernel-qcow2-linux-ffc00e27aa5d343eb71068c185cdbd65871ccdce.zip
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>
Diffstat (limited to 'fs/cifs/cifsglob.h')
0 files changed, 0 insertions, 0 deletions