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/cifsglob.h | |
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/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index dff35830601f..9adf211ca95a 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -177,6 +177,7 @@ struct cifs_fid; | |||
177 | struct cifs_readdata; | 177 | struct cifs_readdata; |
178 | struct cifs_writedata; | 178 | struct cifs_writedata; |
179 | struct cifs_io_parms; | 179 | struct cifs_io_parms; |
180 | struct cifs_search_info; | ||
180 | 181 | ||
181 | struct smb_version_operations { | 182 | struct smb_version_operations { |
182 | int (*send_cancel)(struct TCP_Server_Info *, void *, | 183 | int (*send_cancel)(struct TCP_Server_Info *, void *, |
@@ -313,6 +314,20 @@ struct smb_version_operations { | |||
313 | int (*sync_write)(const unsigned int, struct cifsFileInfo *, | 314 | int (*sync_write)(const unsigned int, struct cifsFileInfo *, |
314 | struct cifs_io_parms *, unsigned int *, struct kvec *, | 315 | struct cifs_io_parms *, unsigned int *, struct kvec *, |
315 | unsigned long); | 316 | unsigned long); |
317 | /* open dir, start readdir */ | ||
318 | int (*query_dir_first)(const unsigned int, struct cifs_tcon *, | ||
319 | const char *, struct cifs_sb_info *, | ||
320 | struct cifs_fid *, __u16, | ||
321 | struct cifs_search_info *); | ||
322 | /* continue readdir */ | ||
323 | int (*query_dir_next)(const unsigned int, struct cifs_tcon *, | ||
324 | struct cifs_fid *, | ||
325 | __u16, struct cifs_search_info *srch_inf); | ||
326 | /* close dir */ | ||
327 | int (*close_dir)(const unsigned int, struct cifs_tcon *, | ||
328 | struct cifs_fid *); | ||
329 | /* calculate a size of SMB message */ | ||
330 | unsigned int (*calc_smb_size)(void *); | ||
316 | }; | 331 | }; |
317 | 332 | ||
318 | struct smb_version_values { | 333 | struct smb_version_values { |