diff options
| author | Enzo Matsumiya <ematsumiya@suse.de> | 2024-11-14 15:46:54 -0300 |
|---|---|---|
| committer | Enzo Matsumiya <ematsumiya@suse.de> | 2024-11-14 15:54:45 -0300 |
| commit | 7761b7e5370826850a1421d7ffc17b85f6c59a99 (patch) | |
| tree | d692c8a93c10dd1e5ebe4fa738e69ca07bdf0949 /fs/smb/client/cifsfs.c | |
| parent | 60eed99db98cb0138209a943d5b8c79af7f7481f (diff) | |
| download | linux-hw24.tar.gz linux-hw24.tar.bz2 linux-hw24.zip | |
smb: client: leave only string and id in smb_version_valueshw24
Remove all other values as they're the same for SMB 3.0+.
For SMB 2.1 handle the only 2 different values (.req_capabilities and
.create_lease_size) in-place.
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Diffstat (limited to 'fs/smb/client/cifsfs.c')
| -rw-r--r-- | fs/smb/client/cifsfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c index 96c21b1661c6..c585b5e80f01 100644 --- a/fs/smb/client/cifsfs.c +++ b/fs/smb/client/cifsfs.c @@ -198,10 +198,9 @@ cifs_read_super(struct super_block *sb) if (tcon->snapshot_time) sb->s_flags |= SB_RDONLY; - if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) + sb->s_maxbytes = MAX_NON_LFS; + if (tcon->ses->capabilities & SMB2_LARGE_FILES) sb->s_maxbytes = MAX_LFS_FILESIZE; - else - sb->s_maxbytes = MAX_NON_LFS; /* * Almost every server, including all SMB2+, uses DCE TIME |
