diff options
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 2c29db6a247e..acc4ee8ed075 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -151,7 +151,7 @@ extern struct inode *cifs_iget(struct super_block *sb, | |||
151 | 151 | ||
152 | extern int cifs_get_inode_info(struct inode **inode, const char *full_path, | 152 | extern int cifs_get_inode_info(struct inode **inode, const char *full_path, |
153 | FILE_ALL_INFO *data, struct super_block *sb, | 153 | FILE_ALL_INFO *data, struct super_block *sb, |
154 | int xid, const __u16 *fid); | 154 | int xid, const struct cifs_fid *fid); |
155 | extern int cifs_get_inode_info_unix(struct inode **pinode, | 155 | extern int cifs_get_inode_info_unix(struct inode **pinode, |
156 | const unsigned char *search_path, | 156 | const unsigned char *search_path, |
157 | struct super_block *sb, unsigned int xid); | 157 | struct super_block *sb, unsigned int xid); |
@@ -162,11 +162,13 @@ extern int cifs_rename_pending_delete(const char *full_path, | |||
162 | const unsigned int xid); | 162 | const unsigned int xid); |
163 | extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, | 163 | extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, |
164 | struct cifs_fattr *fattr, struct inode *inode, | 164 | struct cifs_fattr *fattr, struct inode *inode, |
165 | const char *path, const __u16 *pfid); | 165 | const char *path, const struct cifs_fid *pfid); |
166 | extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64, | 166 | extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64, |
167 | kuid_t, kgid_t); | 167 | kuid_t, kgid_t); |
168 | extern struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *, struct inode *, | 168 | extern struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *, struct inode *, |
169 | const char *, u32 *); | 169 | const char *, u32 *); |
170 | extern struct cifs_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *, | ||
171 | const struct cifs_fid *, u32 *); | ||
170 | extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *, | 172 | extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *, |
171 | const char *, int); | 173 | const char *, int); |
172 | 174 | ||
@@ -362,11 +364,8 @@ extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon, | |||
362 | const struct nls_table *nls_codepage); | 364 | const struct nls_table *nls_codepage); |
363 | extern int CIFSSMB_set_compression(const unsigned int xid, | 365 | extern int CIFSSMB_set_compression(const unsigned int xid, |
364 | struct cifs_tcon *tcon, __u16 fid); | 366 | struct cifs_tcon *tcon, __u16 fid); |
365 | extern int CIFSSMBOpen(const unsigned int xid, struct cifs_tcon *tcon, | 367 | extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, |
366 | const char *fileName, const int disposition, | 368 | int *oplock, FILE_ALL_INFO *buf); |
367 | const int access_flags, const int omode, | ||
368 | __u16 *netfid, int *pOplock, FILE_ALL_INFO *, | ||
369 | const struct nls_table *nls_codepage, int remap); | ||
370 | extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon, | 369 | extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon, |
371 | const char *fileName, const int disposition, | 370 | const char *fileName, const int disposition, |
372 | const int access_flags, const int omode, | 371 | const int access_flags, const int omode, |
@@ -476,8 +475,8 @@ extern int CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon, | |||
476 | extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon, | 475 | extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon, |
477 | const int netfid, __u64 *pExtAttrBits, __u64 *pMask); | 476 | const int netfid, __u64 *pExtAttrBits, __u64 *pMask); |
478 | extern void cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb); | 477 | extern void cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb); |
479 | extern bool CIFSCouldBeMFSymlink(const struct cifs_fattr *fattr); | 478 | extern bool couldbe_mf_symlink(const struct cifs_fattr *fattr); |
480 | extern int CIFSCheckMFSymlink(unsigned int xid, struct cifs_tcon *tcon, | 479 | extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, |
481 | struct cifs_sb_info *cifs_sb, | 480 | struct cifs_sb_info *cifs_sb, |
482 | struct cifs_fattr *fattr, | 481 | struct cifs_fattr *fattr, |
483 | const unsigned char *path); | 482 | const unsigned char *path); |
@@ -491,12 +490,18 @@ void cifs_readdata_release(struct kref *refcount); | |||
491 | int cifs_async_readv(struct cifs_readdata *rdata); | 490 | int cifs_async_readv(struct cifs_readdata *rdata); |
492 | int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid); | 491 | int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid); |
493 | 492 | ||
494 | int cifs_async_writev(struct cifs_writedata *wdata); | 493 | int cifs_async_writev(struct cifs_writedata *wdata, |
494 | void (*release)(struct kref *kref)); | ||
495 | void cifs_writev_complete(struct work_struct *work); | 495 | void cifs_writev_complete(struct work_struct *work); |
496 | struct cifs_writedata *cifs_writedata_alloc(unsigned int nr_pages, | 496 | struct cifs_writedata *cifs_writedata_alloc(unsigned int nr_pages, |
497 | work_func_t complete); | 497 | work_func_t complete); |
498 | void cifs_writedata_release(struct kref *refcount); | 498 | void cifs_writedata_release(struct kref *refcount); |
499 | int open_query_close_cifs_symlink(const unsigned char *path, char *pbuf, | 499 | int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, |
500 | unsigned int *pbytes_read, struct cifs_sb_info *cifs_sb, | 500 | struct cifs_sb_info *cifs_sb, |
501 | unsigned int xid); | 501 | const unsigned char *path, char *pbuf, |
502 | unsigned int *pbytes_read); | ||
503 | int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, | ||
504 | struct cifs_sb_info *cifs_sb, | ||
505 | const unsigned char *path, char *pbuf, | ||
506 | unsigned int *pbytes_written); | ||
502 | #endif /* _CIFSPROTO_H */ | 507 | #endif /* _CIFSPROTO_H */ |