smb: common: simplify compression headers
authorEnzo Matsumiya <ematsumiya@suse.de>
Fri, 8 Mar 2024 22:00:12 +0000 (19:00 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 11 Mar 2024 00:52:42 +0000 (19:52 -0500)
commit24337b60e88219816f84d633369299660e8e8cce
treefdc7871fa36d16b95c0f3651e25b6df1d871b88a
parentf49af462875a0922167cf301cf126cd04009070e
smb: common: simplify compression headers

Unify compression headers (chained and unchained) into a single struct
so we can use it for the initial compression transform header
interchangeably.

Also make the OriginalPayloadSize field to be always visible in the
compression payload header, and have callers subtract its size when not
needed.

Rename the related structs to match the naming convetion used in the
other SMB2 structs.

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smb2pdu.h