Skip to content

Commit 2bfd810

Browse files
author
Steve French
committed
cifs: fix missing display of three mount options
Three mount options: "tcpnodelay" and "noautotune" and "noblocksend" were not displayed when passed in on cifs/smb3 mounts (e.g. displayed in /proc/mounts e.g.). No change to defaults so these are not displayed if not specified on mount. Cc: [email protected] Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 9544597 commit 2bfd810

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

fs/cifs/cifsfs.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,15 @@ cifs_show_options(struct seq_file *s, struct dentry *root)
678678
seq_printf(s, ",echo_interval=%lu",
679679
tcon->ses->server->echo_interval / HZ);
680680

681-
/* Only display max_credits if it was overridden on mount */
681+
/* Only display the following if overridden on mount */
682682
if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE)
683683
seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits);
684+
if (tcon->ses->server->tcp_nodelay)
685+
seq_puts(s, ",tcpnodelay");
686+
if (tcon->ses->server->noautotune)
687+
seq_puts(s, ",noautotune");
688+
if (tcon->ses->server->noblocksnd)
689+
seq_puts(s, ",noblocksend");
684690

685691
if (tcon->snapshot_time)
686692
seq_printf(s, ",snapshot=%llu", tcon->snapshot_time);

0 commit comments

Comments
 (0)