summaryrefslogtreecommitdiff
path: root/fs/smb/client/cifs_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/smb/client/cifs_debug.c')
-rw-r--r--fs/smb/client/cifs_debug.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/smb/client/cifs_debug.c b/fs/smb/client/cifs_debug.c
index 5f2b15e24bd9..f78e197327b5 100644
--- a/fs/smb/client/cifs_debug.c
+++ b/fs/smb/client/cifs_debug.c
@@ -44,9 +44,9 @@ static void cifs_dump_detail(void *buf, struct TCP_Server_Info *server)
smb->Command, smb->Status, smb->Flags, smb->MessageId, smb->Id.SyncId.ProcessId,
smb->StructureSize);
- if (!server->ops->check_message(buf, server->total_read, server)) {
+ if (!smb2_check_message(buf, server->total_read, server)) {
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
- server->ops->calc_smb_size(smb));
+ smb2_calc_smb_size(smb));
}
#endif /* CONFIG_CIFS_DEBUG2 */
}
@@ -510,7 +510,7 @@ skip_rdma:
spin_unlock(&ses->ses_lock);
seq_printf(m, "\n\tSecurity type: %s ",
- get_security_type_str(server->ops->select_sectype(server, ses->sectype)));
+ get_security_type_str(smb2_select_sectype(server, ses->sectype)));
/* dump session id helpful for use with network trace */
seq_printf(m, " SessionId: 0x%llx", ses->Suid);
@@ -682,8 +682,7 @@ static ssize_t cifs_stats_proc_write(struct file *file,
tcon->bytes_written = 0;
tcon->stats_from_time = ktime_get_real_seconds();
spin_unlock(&tcon->stat_lock);
- if (server->ops->clear_stats)
- server->ops->clear_stats(tcon);
+ smb2_clear_stats(tcon);
}
}
}
@@ -764,8 +763,7 @@ static int cifs_stats_proc_show(struct seq_file *m, void *v)
seq_printf(m, "\nSMBs: %d since %ptTs UTC",
atomic_read(&tcon->num_smbs_sent),
&tcon->stats_from_time);
- if (server->ops->print_stats)
- server->ops->print_stats(m, tcon);
+ smb2_print_stats(m, tcon);
}
}
}