diff options
Diffstat (limited to 'fs/cifs/cifsglob.h')
| -rw-r--r-- | fs/cifs/cifsglob.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index a245d1809ed8..c0f3718b77a8 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
| @@ -323,7 +323,8 @@ struct smb_version_operations { | |||
| 323 | /* async read from the server */ | 323 | /* async read from the server */ |
| 324 | int (*async_readv)(struct cifs_readdata *); | 324 | int (*async_readv)(struct cifs_readdata *); |
| 325 | /* async write to the server */ | 325 | /* async write to the server */ |
| 326 | int (*async_writev)(struct cifs_writedata *); | 326 | int (*async_writev)(struct cifs_writedata *, |
| 327 | void (*release)(struct kref *)); | ||
| 327 | /* sync read from the server */ | 328 | /* sync read from the server */ |
| 328 | int (*sync_read)(const unsigned int, struct cifsFileInfo *, | 329 | int (*sync_read)(const unsigned int, struct cifsFileInfo *, |
| 329 | struct cifs_io_parms *, unsigned int *, char **, | 330 | struct cifs_io_parms *, unsigned int *, char **, |
| @@ -395,6 +396,12 @@ struct smb_version_operations { | |||
| 395 | int (*set_EA)(const unsigned int, struct cifs_tcon *, const char *, | 396 | int (*set_EA)(const unsigned int, struct cifs_tcon *, const char *, |
| 396 | const char *, const void *, const __u16, | 397 | const char *, const void *, const __u16, |
| 397 | const struct nls_table *, int); | 398 | const struct nls_table *, int); |
| 399 | struct cifs_ntsd * (*get_acl)(struct cifs_sb_info *, struct inode *, | ||
| 400 | const char *, u32 *); | ||
| 401 | struct cifs_ntsd * (*get_acl_by_fid)(struct cifs_sb_info *, | ||
| 402 | const struct cifs_fid *, u32 *); | ||
| 403 | int (*set_acl)(struct cifs_ntsd *, __u32, struct inode *, const char *, | ||
| 404 | int); | ||
| 398 | }; | 405 | }; |
| 399 | 406 | ||
| 400 | struct smb_version_values { | 407 | struct smb_version_values { |
| @@ -506,7 +513,7 @@ struct cifs_mnt_data { | |||
| 506 | static inline unsigned int | 513 | static inline unsigned int |
| 507 | get_rfc1002_length(void *buf) | 514 | get_rfc1002_length(void *buf) |
| 508 | { | 515 | { |
| 509 | return be32_to_cpu(*((__be32 *)buf)); | 516 | return be32_to_cpu(*((__be32 *)buf)) & 0xffffff; |
| 510 | } | 517 | } |
| 511 | 518 | ||
| 512 | static inline void | 519 | static inline void |
| @@ -1064,7 +1071,7 @@ struct cifs_writedata { | |||
| 1064 | unsigned int pagesz; | 1071 | unsigned int pagesz; |
| 1065 | unsigned int tailsz; | 1072 | unsigned int tailsz; |
| 1066 | unsigned int nr_pages; | 1073 | unsigned int nr_pages; |
| 1067 | struct page *pages[1]; | 1074 | struct page *pages[]; |
| 1068 | }; | 1075 | }; |
| 1069 | 1076 | ||
| 1070 | /* | 1077 | /* |
