cifs: keep BCC in little-endian format
commit820a803ffac3ef591e597bc107f8e289a823a29c
authorJeff Layton <jlayton@redhat.com>
Wed, 4 May 2011 12:05:26 +0000 (4 08:05 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 19 May 2011 14:10:53 +0000 (19 14:10 +0000)
tree246451259a7efc5027647de639a69cb121b889e0
parent0e6e37a7a81f370d9aafafdf88aca13977f6fb5f
cifs: keep BCC in little-endian format

This is the same patch as originally posted, just with some merge
conflicts fixed up...

Currently, the ByteCount is usually converted to host-endian on receive.
This is confusing however, as we need to keep two sets of routines for
accessing it, and keep track of when to use each routine. Munging
received packets like this also limits when the signature can be
calulated.

Simplify the code by keeping the received ByteCount in little-endian
format. This allows us to eliminate a set of routines for accessing it
and we can now drop the *_le suffixes from the accessor functions since
that's now implied.

While we're at it, switch all of the places that read the ByteCount
directly to use the get_bcc inline which should also clean up some
unaligned accesses.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_debug.c
fs/cifs/cifspdu.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/misc.c
fs/cifs/netmisc.c
fs/cifs/sess.c
fs/cifs/transport.c