diff options
author | Steve French <stfrench@microsoft.com> | 2021-04-24 21:46:23 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-04-25 23:59:08 -0500 |
commit | b8d64f8ced62f9ace9d25c338be1043b8367dd34 (patch) | |
tree | dcdda7c0b18b6d74bc0ea6ee75f88ec95d16acc2 /fs/cifs/fs_context.h | |
parent | 423333bcba248c6b65e7eac1a0b8eef57c9eac72 (diff) | |
download | linux-b8d64f8ced62f9ace9d25c338be1043b8367dd34.tar.bz2 |
smb3: add rasize mount parameter to improve readahead performance
In some cases readahead of more than the read size can help
(to allow parallel i/o of read ahead which can improve performance).
Ceph introduced a mount parameter "rasize" to allow controlling this.
Add mount parameter "rasize" to allow control of amount of readahead
requested of the server. If rasize not set, rasize defaults to
negotiated rsize as before.
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/fs_context.h')
-rw-r--r-- | fs/cifs/fs_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/fs_context.h b/fs/cifs/fs_context.h index 56d7a75e2390..2a71c8e411ac 100644 --- a/fs/cifs/fs_context.h +++ b/fs/cifs/fs_context.h @@ -120,6 +120,7 @@ enum cifs_param { Opt_dirmode, Opt_min_enc_offload, Opt_blocksize, + Opt_rasize, Opt_rsize, Opt_wsize, Opt_actimeo, @@ -235,6 +236,7 @@ struct smb3_fs_context { /* reuse existing guid for multichannel */ u8 client_guid[SMB2_CLIENT_GUID_SIZE]; unsigned int bsize; + unsigned int rasize; unsigned int rsize; unsigned int wsize; unsigned int min_offload; |