diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:32 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:29 -0400 |
commit | 92fc65a74a2be1388d774f7dbf82c9adea1745cf (patch) | |
tree | 262ccb0fcb9edbf09cd2480facaa9135ec511088 /fs/cifs/netmisc.c | |
parent | 1feeaac753e0a9b3864740556b7840643642abdb (diff) |
CIFS: Move readdir code to ops struct
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r-- | fs/cifs/netmisc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 581c225f7f5..e7bab3be5cf 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c | |||
@@ -913,8 +913,9 @@ map_smb_to_linux_error(char *buf, bool logErr) | |||
913 | * portion, the number of word parameters and the data portion of the message | 913 | * portion, the number of word parameters and the data portion of the message |
914 | */ | 914 | */ |
915 | unsigned int | 915 | unsigned int |
916 | smbCalcSize(struct smb_hdr *ptr) | 916 | smbCalcSize(void *buf) |
917 | { | 917 | { |
918 | struct smb_hdr *ptr = (struct smb_hdr *)buf; | ||
918 | return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) + | 919 | return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) + |
919 | 2 /* size of the bcc field */ + get_bcc(ptr)); | 920 | 2 /* size of the bcc field */ + get_bcc(ptr)); |
920 | } | 921 | } |