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/smb2ops.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/smb2ops.c')
-rw-r--r-- | fs/cifs/smb2ops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 12875d55c5a9..b3fb2909445b 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -212,7 +212,7 @@ smb2_find_mid(struct TCP_Server_Info *server, char *buf) } static void -smb2_dump_detail(void *buf) +smb2_dump_detail(void *buf, struct TCP_Server_Info *server) { #ifdef CONFIG_CIFS_DEBUG2 struct smb2_sync_hdr *shdr = get_sync_hdr(buf); @@ -220,7 +220,8 @@ smb2_dump_detail(void *buf) cifs_dbg(VFS, "Cmd: %d Err: 0x%x Flags: 0x%x Mid: %llu Pid: %d\n", shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId, shdr->ProcessId); - cifs_dbg(VFS, "smb buf %p len %u\n", buf, smb2_calc_size(buf)); + cifs_dbg(VFS, "smb buf %p len %u\n", buf, + server->ops->calc_smb_size(buf)); #endif } |