提交 df75b956 编写于 作者: C Christoph Hellwig 提交者: Nicholas Bellinger

tcm_loop: remove struct tcm_loop_nacl

Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 afc16604
...@@ -706,25 +706,14 @@ static int tcm_loop_check_prot_fabric_only(struct se_portal_group *se_tpg) ...@@ -706,25 +706,14 @@ static int tcm_loop_check_prot_fabric_only(struct se_portal_group *se_tpg)
static struct se_node_acl *tcm_loop_tpg_alloc_fabric_acl( static struct se_node_acl *tcm_loop_tpg_alloc_fabric_acl(
struct se_portal_group *se_tpg) struct se_portal_group *se_tpg)
{ {
struct tcm_loop_nacl *tl_nacl; return kzalloc(sizeof(struct se_node_acl), GFP_KERNEL);
tl_nacl = kzalloc(sizeof(struct tcm_loop_nacl), GFP_KERNEL);
if (!tl_nacl) {
pr_err("Unable to allocate struct tcm_loop_nacl\n");
return NULL;
}
return &tl_nacl->se_node_acl;
} }
static void tcm_loop_tpg_release_fabric_acl( static void tcm_loop_tpg_release_fabric_acl(
struct se_portal_group *se_tpg, struct se_portal_group *se_tpg,
struct se_node_acl *se_nacl) struct se_node_acl *se_nacl)
{ {
struct tcm_loop_nacl *tl_nacl = container_of(se_nacl, kfree(se_nacl);
struct tcm_loop_nacl, se_node_acl);
kfree(tl_nacl);
} }
static u32 tcm_loop_get_inst_index(struct se_portal_group *se_tpg) static u32 tcm_loop_get_inst_index(struct se_portal_group *se_tpg)
......
...@@ -28,10 +28,6 @@ struct tcm_loop_nexus { ...@@ -28,10 +28,6 @@ struct tcm_loop_nexus {
struct se_session *se_sess; struct se_session *se_sess;
}; };
struct tcm_loop_nacl {
struct se_node_acl se_node_acl;
};
#define TCM_TRANSPORT_ONLINE 0 #define TCM_TRANSPORT_ONLINE 0
#define TCM_TRANSPORT_OFFLINE 1 #define TCM_TRANSPORT_OFFLINE 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册