diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2013-07-05 04:00:30 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-07-10 14:08:40 -0400 |
commit | 226730b4d8adae393dc07092655cdd29d2a2ff07 (patch) | |
tree | eda0aef086114d0309d669e01c22a0ec5d987cc5 /fs/cifs/cifsglob.h | |
parent | 63eb3def3267a5744863801e8221898b0ba9d41d (diff) |
CIFS: Introduce cifs_open_parms struct
and pass it to the open() call.
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steven French <steven@steven-GA-970A-DS3.(none)>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index e66b08882548..982fdf92c791 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -194,6 +194,7 @@ struct cifs_writedata; | |||
194 | struct cifs_io_parms; | 194 | struct cifs_io_parms; |
195 | struct cifs_search_info; | 195 | struct cifs_search_info; |
196 | struct cifsInodeInfo; | 196 | struct cifsInodeInfo; |
197 | struct cifs_open_parms; | ||
197 | 198 | ||
198 | struct smb_version_operations { | 199 | struct smb_version_operations { |
199 | int (*send_cancel)(struct TCP_Server_Info *, void *, | 200 | int (*send_cancel)(struct TCP_Server_Info *, void *, |
@@ -307,9 +308,8 @@ struct smb_version_operations { | |||
307 | const char *, const char *, | 308 | const char *, const char *, |
308 | struct cifs_sb_info *); | 309 | struct cifs_sb_info *); |
309 | /* open a file for non-posix mounts */ | 310 | /* open a file for non-posix mounts */ |
310 | int (*open)(const unsigned int, struct cifs_tcon *, const char *, int, | 311 | int (*open)(const unsigned int, struct cifs_open_parms *, |
311 | int, int, struct cifs_fid *, __u32 *, FILE_ALL_INFO *, | 312 | __u32 *, FILE_ALL_INFO *); |
312 | struct cifs_sb_info *); | ||
313 | /* set fid protocol-specific info */ | 313 | /* set fid protocol-specific info */ |
314 | void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32); | 314 | void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32); |
315 | /* close a file */ | 315 | /* close a file */ |
@@ -912,6 +912,16 @@ struct cifs_search_info { | |||
912 | bool smallBuf:1; /* so we know which buf_release function to call */ | 912 | bool smallBuf:1; /* so we know which buf_release function to call */ |
913 | }; | 913 | }; |
914 | 914 | ||
915 | struct cifs_open_parms { | ||
916 | struct cifs_tcon *tcon; | ||
917 | struct cifs_sb_info *cifs_sb; | ||
918 | int disposition; | ||
919 | int desired_access; | ||
920 | int create_options; | ||
921 | const char *path; | ||
922 | struct cifs_fid *fid; | ||
923 | }; | ||
924 | |||
915 | struct cifs_fid { | 925 | struct cifs_fid { |
916 | __u16 netfid; | 926 | __u16 netfid; |
917 | #ifdef CONFIG_CIFS_SMB2 | 927 | #ifdef CONFIG_CIFS_SMB2 |