diff options
author | Steve French <stfrench@microsoft.com> | 2022-03-26 18:47:57 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-03-27 06:09:20 +0200 |
commit | 15e7b6d753b815b19b375dcd4593534c0f157c66 (patch) | |
tree | ae2537f896a392b33de75b5ef33c7b2f8ca28a3c /fs/cifs/cifsglob.h | |
parent | [smb3] move more common protocol header definitions to smbfs_common (diff) | |
download | linux-15e7b6d753b815b19b375dcd4593534c0f157c66.tar.xz linux-15e7b6d753b815b19b375dcd4593534c0f157c66.zip |
smb3: move defines for ioctl protocol header and SMB2 sizes to smbfs_common
The definitions for the ioctl SMB3 request and response as well
as length of various fields defined in the protocol documentation
were duplicated in fs/ksmbd and fs/cifs. Move these to the common
code in fs/smbfs_common/smb2pdu.h
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 48b343d03430..ad3cd6053f4e 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -852,13 +852,7 @@ compare_mid(__u16 mid, const struct smb_hdr *smb) #define CIFS_MAX_RFC1002_WSIZE ((1<<17) - 1 - sizeof(WRITE_REQ) + 4) #define CIFS_MAX_RFC1002_RSIZE ((1<<17) - 1 - sizeof(READ_RSP) + 4) -/* - * The default wsize is 1M. find_get_pages seems to return a maximum of 256 - * pages in a single call. With PAGE_SIZE == 4k, this means we can fill - * a single wsize request with a single call. - */ #define CIFS_DEFAULT_IOSIZE (1024 * 1024) -#define SMB3_DEFAULT_IOSIZE (4 * 1024 * 1024) /* * Windows only supports a max of 60kb reads and 65535 byte writes. Default to |