]> www.infradead.org Git - users/willy/xarray.git/commit
smb: use macros instead of constants for leasekey size and default cifsattrs value
authorBharath SM <bharathsm@microsoft.com>
Mon, 16 Dec 2024 18:39:36 +0000 (00:09 +0530)
committerSteve French <stfrench@microsoft.com>
Thu, 19 Dec 2024 15:24:32 +0000 (09:24 -0600)
commita769bee5f9fbca47efd4fa6bc3d726d370cedebe
treef8c7625cd0ffc0c2116ff8941c4bb80f09f22f0b
parent78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
smb: use macros instead of constants for leasekey size and default cifsattrs value

Replace default hardcoded value for cifsAttrs with ATTR_ARCHIVE macro
Use SMB2_LEASE_KEY_SIZE macro for leasekey size in smb2_lease_break

Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c
fs/smb/client/smb2pdu.c