cifs: update init_sg, crypt_message to take an array of rqst
These are used for SMB3 encryption and compounded requests. Update these functions and the other functions related to SMB3 encryption to take an array of requests. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
This commit is contained in:

zatwierdzone przez
Steve French

rodzic
3de5e974ba
commit
b2c96de7fe
@@ -454,10 +454,8 @@ struct smb_version_operations {
|
||||
long (*fallocate)(struct file *, struct cifs_tcon *, int, loff_t,
|
||||
loff_t);
|
||||
/* init transform request - used for encryption for now */
|
||||
int (*init_transform_rq)(struct TCP_Server_Info *, struct smb_rqst *,
|
||||
struct smb_rqst *);
|
||||
/* free transform request */
|
||||
void (*free_transform_rq)(struct smb_rqst *);
|
||||
int (*init_transform_rq)(struct TCP_Server_Info *, int num_rqst,
|
||||
struct smb_rqst *, struct smb_rqst *);
|
||||
int (*is_transform_hdr)(void *buf);
|
||||
int (*receive_transform)(struct TCP_Server_Info *,
|
||||
struct mid_q_entry **);
|
||||
@@ -1023,6 +1021,7 @@ struct tcon_link {
|
||||
};
|
||||
|
||||
extern struct tcon_link *cifs_sb_tlink(struct cifs_sb_info *cifs_sb);
|
||||
extern void smb3_free_compound_rqst(int num_rqst, struct smb_rqst *rqst);
|
||||
|
||||
static inline struct cifs_tcon *
|
||||
tlink_tcon(struct tcon_link *tlink)
|
||||
|
Reference in New Issue
Block a user