diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:26 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:26 -0400 |
commit | fb1214e48f735cdb68446adb77ec37aa3de60697 (patch) | |
tree | 158dbfbedaf396f013e70f5288fdc906e990391c /fs/cifs/cifsglob.h | |
parent | 4b4de76e35518fc0c636f628abca8c1b19ad6689 (diff) |
CIFS: Move open code to ops struct
Acked-by: Jeff Layton <jlayton@redhat.com>
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index a2a3865dee1b..e649fac7d6fe 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -171,6 +171,7 @@ struct cifs_tcon; | |||
171 | struct dfs_info3_param; | 171 | struct dfs_info3_param; |
172 | struct cifs_fattr; | 172 | struct cifs_fattr; |
173 | struct smb_vol; | 173 | struct smb_vol; |
174 | struct cifs_fid; | ||
174 | 175 | ||
175 | struct smb_version_operations { | 176 | struct smb_version_operations { |
176 | int (*send_cancel)(struct TCP_Server_Info *, void *, | 177 | int (*send_cancel)(struct TCP_Server_Info *, void *, |
@@ -262,6 +263,12 @@ struct smb_version_operations { | |||
262 | /* open, rename and delete file */ | 263 | /* open, rename and delete file */ |
263 | int (*rename_pending_delete)(const char *, struct dentry *, | 264 | int (*rename_pending_delete)(const char *, struct dentry *, |
264 | const unsigned int); | 265 | const unsigned int); |
266 | /* open a file for non-posix mounts */ | ||
267 | int (*open)(const unsigned int, struct cifs_tcon *, const char *, int, | ||
268 | int, int, struct cifs_fid *, __u32 *, FILE_ALL_INFO *, | ||
269 | struct cifs_sb_info *); | ||
270 | /* set fid protocol-specific info */ | ||
271 | void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32); | ||
265 | }; | 272 | }; |
266 | 273 | ||
267 | struct smb_version_values { | 274 | struct smb_version_values { |