aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r--fs/cifs/cifsproto.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
index 8a7adb31ffed..c25d0636cc4f 100644
--- a/fs/cifs/cifsproto.h
+++ b/fs/cifs/cifsproto.h
@@ -154,6 +154,12 @@ extern struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *, struct inode *,
154extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *, 154extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *,
155 const char *, int); 155 const char *, int);
156 156
157extern void dequeue_mid(struct mid_q_entry *mid, bool malformed);
158extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf,
159 unsigned int to_read);
160extern int cifs_readv_from_socket(struct TCP_Server_Info *server,
161 struct kvec *iov_orig, unsigned int nr_segs,
162 unsigned int to_read);
157extern void cifs_setup_cifs_sb(struct smb_vol *pvolume_info, 163extern void cifs_setup_cifs_sb(struct smb_vol *pvolume_info,
158 struct cifs_sb_info *cifs_sb); 164 struct cifs_sb_info *cifs_sb);
159extern int cifs_match_super(struct super_block *, void *); 165extern int cifs_match_super(struct super_block *, void *);
@@ -443,6 +449,24 @@ extern int E_md4hash(const unsigned char *passwd, unsigned char *p16);
443extern int SMBencrypt(unsigned char *passwd, const unsigned char *c8, 449extern int SMBencrypt(unsigned char *passwd, const unsigned char *c8,
444 unsigned char *p24); 450 unsigned char *p24);
445 451
452/* asynchronous read support */
453struct cifs_readdata {
454 struct cifsFileInfo *cfile;
455 struct address_space *mapping;
456 __u64 offset;
457 unsigned int bytes;
458 pid_t pid;
459 int result;
460 struct list_head pages;
461 struct work_struct work;
462 unsigned int nr_iov;
463 struct kvec iov[1];
464};
465
466struct cifs_readdata *cifs_readdata_alloc(unsigned int nr_pages);
467void cifs_readdata_free(struct cifs_readdata *rdata);
468int cifs_async_readv(struct cifs_readdata *rdata);
469
446/* asynchronous write support */ 470/* asynchronous write support */
447struct cifs_writedata { 471struct cifs_writedata {
448 struct kref refcount; 472 struct kref refcount;