summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/fs_context.h
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2024-02-23 11:58:57 -0300
committerSteve French <stfrench@microsoft.com>2024-03-10 19:52:42 -0500
commit8fe7062b7d11fcd21c4dcb5f530eaa1a099b24e7 (patch)
treee18865670d456f31c3546d5401223de10c42a7eb /fs/smb/client/fs_context.h
parent073dd87c8e1ee55ca163956f0c71249dc28aac51 (diff)
downloadlinux-stable-8fe7062b7d11fcd21c4dcb5f530eaa1a099b24e7.tar.gz
linux-stable-8fe7062b7d11fcd21c4dcb5f530eaa1a099b24e7.tar.bz2
linux-stable-8fe7062b7d11fcd21c4dcb5f530eaa1a099b24e7.zip
smb: client: negotiate compression algorithms
Change "compress=" mount option to a boolean flag, that, if set, will enable negotiating compression algorithms with the server. Do not de/compress anything for now. Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/fs_context.h')
-rw-r--r--fs/smb/client/fs_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/fs_context.h b/fs/smb/client/fs_context.h
index 1f09754977e7..7863f2248c4d 100644
--- a/fs/smb/client/fs_context.h
+++ b/fs/smb/client/fs_context.h
@@ -273,7 +273,7 @@ struct smb3_fs_context {
unsigned int max_credits; /* smb3 max_credits 10 < credits < 60000 */
unsigned int max_channels;
unsigned int max_cached_dirs;
- __u16 compression; /* compression algorithm 0xFFFF default 0=disabled */
+ bool compress; /* enable SMB2 messages (READ/WRITE) de/compression */
bool rootfs:1; /* if it's a SMB root file system */
bool witness:1; /* use witness protocol */
char *leaf_fullpath;