cifs: Pass unbyteswapped eof value into SMB2_set_eof()
authorDavid Howells <dhowells@redhat.com>
Mon, 1 Jan 2024 15:40:10 +0000 (15:40 +0000)
committerSteve French <stfrench@microsoft.com>
Sun, 7 Jan 2024 21:46:06 +0000 (15:46 -0600)
commit6ebfede8d57a615dcbdec7e490faed585153f7f1
treeb51d1ca9f928f0c08dc960374d51f2eace97c9d5
parent96d566b6c933be96e9f5b216f04024ab522e0465
cifs: Pass unbyteswapped eof value into SMB2_set_eof()

Change SMB2_set_eof() to take eof as CPU order rather than __le64 and pass
it directly rather than by pointer.  This moves the conversion down into
SMB_set_eof() rather than all of its callers and means we don't need to
undo it for the traceline.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c
fs/smb/client/smb2pdu.c
fs/smb/client/smb2proto.h