mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
scsi: target/iscsi: Rename a function and a function pointer
Having both a function and a function pointer member with the same name (iscsit_release_cmd) is confusing. Hence rename the function pointer member. Cc: Nicholas Bellinger <[email protected]> Cc: Mike Christie <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Hannes Reinecke <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
0300b1147e
commit
1e65cc1631
5 changed files with 6 additions and 6 deletions
|
|
@ -345,7 +345,7 @@ struct cxgbit_device *cxgbit_find_device(struct net_device *, u8 *);
|
|||
int cxgbit_ddp_init(struct cxgbit_device *);
|
||||
int cxgbit_setup_conn_pgidx(struct cxgbit_sock *, u32);
|
||||
int cxgbit_reserve_ttt(struct cxgbit_sock *, struct iscsi_cmd *);
|
||||
void cxgbit_release_cmd(struct iscsi_conn *, struct iscsi_cmd *);
|
||||
void cxgbit_unmap_cmd(struct iscsi_conn *, struct iscsi_cmd *);
|
||||
|
||||
static inline
|
||||
struct cxgbi_ppm *cdev2ppm(struct cxgbit_device *cdev)
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ out:
|
|||
r2t->targ_xfer_tag = ttinfo->tag;
|
||||
}
|
||||
|
||||
void cxgbit_release_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd)
|
||||
void cxgbit_unmap_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd)
|
||||
{
|
||||
struct cxgbit_cmd *ccmd = iscsit_priv_cmd(cmd);
|
||||
|
||||
|
|
|
|||
|
|
@ -678,7 +678,7 @@ static struct iscsit_transport cxgbit_transport = {
|
|||
.iscsit_get_r2t_ttt = cxgbit_get_r2t_ttt,
|
||||
.iscsit_get_rx_pdu = cxgbit_get_rx_pdu,
|
||||
.iscsit_validate_params = cxgbit_validate_params,
|
||||
.iscsit_release_cmd = cxgbit_release_cmd,
|
||||
.iscsit_unmap_cmd = cxgbit_unmap_cmd,
|
||||
.iscsit_aborted_task = iscsit_aborted_task,
|
||||
.iscsit_get_sup_prot_ops = cxgbit_get_sup_prot_ops,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -760,8 +760,8 @@ void __iscsit_free_cmd(struct iscsi_cmd *cmd, bool check_queues)
|
|||
iscsit_remove_cmd_from_response_queue(cmd, conn);
|
||||
}
|
||||
|
||||
if (conn && conn->conn_transport->iscsit_release_cmd)
|
||||
conn->conn_transport->iscsit_release_cmd(conn, cmd);
|
||||
if (conn && conn->conn_transport->iscsit_unmap_cmd)
|
||||
conn->conn_transport->iscsit_unmap_cmd(conn, cmd);
|
||||
}
|
||||
|
||||
void iscsit_free_cmd(struct iscsi_cmd *cmd, bool shutdown)
|
||||
|
|
|
|||
Loading…
Reference in a new issue