diff options
| author | Christoph Hellwig <hch@lst.de> | 2015-04-13 13:51:16 -0400 |
|---|---|---|
| committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-31 01:42:23 -0400 |
| commit | 144bc4c2a42a0f42a32c106d53f5bf2724fbf098 (patch) | |
| tree | 1b1a1a6b0dabea88e6dcef368305c6bac3c33648 /drivers/target/loopback | |
| parent | e413f4727037e826c55a639c713a221006b6d61d (diff) | |
target: move node ACL allocation to core code
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/loopback')
| -rw-r--r-- | drivers/target/loopback/tcm_loop.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 12b85b03e9ae..5a71c9f2ee66 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
| @@ -698,19 +698,6 @@ static int tcm_loop_check_prot_fabric_only(struct se_portal_group *se_tpg) | |||
| 698 | return tl_tpg->tl_fabric_prot_type; | 698 | return tl_tpg->tl_fabric_prot_type; |
| 699 | } | 699 | } |
| 700 | 700 | ||
| 701 | static struct se_node_acl *tcm_loop_tpg_alloc_fabric_acl( | ||
| 702 | struct se_portal_group *se_tpg) | ||
| 703 | { | ||
| 704 | return kzalloc(sizeof(struct se_node_acl), GFP_KERNEL); | ||
| 705 | } | ||
| 706 | |||
| 707 | static void tcm_loop_tpg_release_fabric_acl( | ||
| 708 | struct se_portal_group *se_tpg, | ||
| 709 | struct se_node_acl *se_nacl) | ||
| 710 | { | ||
| 711 | kfree(se_nacl); | ||
| 712 | } | ||
| 713 | |||
| 714 | static u32 tcm_loop_get_inst_index(struct se_portal_group *se_tpg) | 701 | static u32 tcm_loop_get_inst_index(struct se_portal_group *se_tpg) |
| 715 | { | 702 | { |
| 716 | return 1; | 703 | return 1; |
| @@ -1383,8 +1370,6 @@ static const struct target_core_fabric_ops loop_ops = { | |||
| 1383 | .tpg_check_prod_mode_write_protect = | 1370 | .tpg_check_prod_mode_write_protect = |
| 1384 | tcm_loop_check_prod_mode_write_protect, | 1371 | tcm_loop_check_prod_mode_write_protect, |
| 1385 | .tpg_check_prot_fabric_only = tcm_loop_check_prot_fabric_only, | 1372 | .tpg_check_prot_fabric_only = tcm_loop_check_prot_fabric_only, |
| 1386 | .tpg_alloc_fabric_acl = tcm_loop_tpg_alloc_fabric_acl, | ||
| 1387 | .tpg_release_fabric_acl = tcm_loop_tpg_release_fabric_acl, | ||
| 1388 | .tpg_get_inst_index = tcm_loop_get_inst_index, | 1373 | .tpg_get_inst_index = tcm_loop_get_inst_index, |
| 1389 | .check_stop_free = tcm_loop_check_stop_free, | 1374 | .check_stop_free = tcm_loop_check_stop_free, |
| 1390 | .release_cmd = tcm_loop_release_cmd, | 1375 | .release_cmd = tcm_loop_release_cmd, |
