diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-04-22 22:45:53 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-05-28 00:56:35 +0200 |
commit | 14547f7d74c4a2583214693f69d45374b8028649 (patch) | |
tree | 03e7f121f72d9565ee4cfbe393b2330202a2c623 /fs/cifs/cifs_debug.c | |
parent | smb3: fix redundant opens on root (diff) | |
download | linux-14547f7d74c4a2583214693f69d45374b8028649.tar.xz linux-14547f7d74c4a2583214693f69d45374b8028649.zip |
cifs: add server argument to the dump_detail method
We need a struct TCP_Server_Info *server to this method as it calls
calc_size. The calc_size method will soon be changed to also
take a server argument.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 9d69ea433330..43ae00cd160f 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -42,7 +42,7 @@ cifs_dump_mem(char *label, void *data, int length) data, length, true); } -void cifs_dump_detail(void *buf) +void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) { #ifdef CONFIG_CIFS_DEBUG2 struct smb_hdr *smb = (struct smb_hdr *)buf; @@ -50,7 +50,8 @@ void cifs_dump_detail(void *buf) cifs_dbg(VFS, "Cmd: %d Err: 0x%x Flags: 0x%x Flgs2: 0x%x Mid: %d Pid: %d\n", smb->Command, smb->Status.CifsError, smb->Flags, smb->Flags2, smb->Mid, smb->Pid); - cifs_dbg(VFS, "smb buf %p len %u\n", smb, smbCalcSize(smb)); + cifs_dbg(VFS, "smb buf %p len %u\n", smb, + server->ops->calc_smb_size(smb)); #endif /* CONFIG_CIFS_DEBUG2 */ } |