diff options
author | Henrique Carvalho <henrique.carvalho@suse.com> | 2024-11-12 16:48:09 -0300 |
---|---|---|
committer | Enzo Matsumiya <ematsumiya@suse.de> | 2024-11-13 15:49:46 -0300 |
commit | 472697f67cf64a2461ad1842927f3c8cc539f37e (patch) | |
tree | 37bb1e46b0884721d35eb5d902aaf1bcf88374b0 /fs/smb/client/cifs_debug.c | |
parent | 8e5cdf186897806453d95697985d2eb21a4730a7 (diff) | |
download | linux-hw24-hc-wip.tar.gz linux-hw24-hc-wip.tar.bz2 linux-hw24-hc-wip.zip |
smb: client: replace function pointers of common operations for thehw24-hc-wip
common function
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Diffstat (limited to 'fs/smb/client/cifs_debug.c')
-rw-r--r-- | fs/smb/client/cifs_debug.c | 12 |
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); } } } |