cifs: mangle existing header for SMB_COM_NT_CANCEL
authorJeff Layton <jlayton@redhat.com>
Tue, 11 Jan 2011 12:24:24 +0000 (07:24 -0500)
committerSteve French <sfrench@us.ibm.com>
Thu, 20 Jan 2011 18:08:36 +0000 (18:08 +0000)
commit76dcc26f1d7f1c98c3f595379dcd9562f01bf38d
tree98ff38d579542700ef79dd2e0b0f331524e7c1a6
parent7749981ec31aa40e28a1ef5687e46bc1aa278fae
cifs: mangle existing header for SMB_COM_NT_CANCEL

The NT_CANCEL command looks just like the original command, except for a
few small differences. The send_nt_cancel function however currently takes
a tcon, which we don't have in SendReceive and SendReceive2.

Instead of "respinning" the entire header for an NT_CANCEL, just mangle
the existing header by replacing just the fields we need. This means we
don't need a tcon and allows us to call it from other places.

Reviewed-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/transport.c