diff options
| author | Christoph Hellwig <hch@lst.de> | 2015-05-03 02:50:55 -0400 |
|---|---|---|
| committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-31 01:42:38 -0400 |
| commit | 968ebe752035d14a4c2bb69f8ed0ddf7292dd2f9 (patch) | |
| tree | 1d2a581bb78865345a953a00ad91192418cecba1 /include/target | |
| parent | 0dc2e8d1435318dc448ac390d6d31e6cd2516684 (diff) | |
target: remove struct target_fabric_configfs_template
It's only embedded into struct target_fabric_configfs these days, so we
might as well remove this layer of abstraction.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
| -rw-r--r-- | include/target/target_core_configfs.h | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/include/target/target_core_configfs.h b/include/target/target_core_configfs.h index 3f11d2ead63d..abd063b8b301 100644 --- a/include/target/target_core_configfs.h +++ b/include/target/target_core_configfs.h | |||
| @@ -5,30 +5,6 @@ | |||
| 5 | #define TARGET_CORE_NAME_MAX_LEN 64 | 5 | #define TARGET_CORE_NAME_MAX_LEN 64 |
| 6 | #define TARGET_FABRIC_NAME_SIZE 32 | 6 | #define TARGET_FABRIC_NAME_SIZE 32 |
| 7 | 7 | ||
| 8 | struct target_fabric_configfs_template { | ||
| 9 | struct config_item_type tfc_discovery_cit; | ||
| 10 | struct config_item_type tfc_wwn_cit; | ||
| 11 | struct config_item_type tfc_wwn_fabric_stats_cit; | ||
| 12 | struct config_item_type tfc_tpg_cit; | ||
| 13 | struct config_item_type tfc_tpg_base_cit; | ||
| 14 | struct config_item_type tfc_tpg_lun_cit; | ||
| 15 | struct config_item_type tfc_tpg_port_cit; | ||
| 16 | struct config_item_type tfc_tpg_port_stat_cit; | ||
| 17 | struct config_item_type tfc_tpg_np_cit; | ||
| 18 | struct config_item_type tfc_tpg_np_base_cit; | ||
| 19 | struct config_item_type tfc_tpg_attrib_cit; | ||
| 20 | struct config_item_type tfc_tpg_auth_cit; | ||
| 21 | struct config_item_type tfc_tpg_param_cit; | ||
| 22 | struct config_item_type tfc_tpg_nacl_cit; | ||
| 23 | struct config_item_type tfc_tpg_nacl_base_cit; | ||
| 24 | struct config_item_type tfc_tpg_nacl_attrib_cit; | ||
| 25 | struct config_item_type tfc_tpg_nacl_auth_cit; | ||
| 26 | struct config_item_type tfc_tpg_nacl_param_cit; | ||
| 27 | struct config_item_type tfc_tpg_nacl_stat_cit; | ||
| 28 | struct config_item_type tfc_tpg_mappedlun_cit; | ||
| 29 | struct config_item_type tfc_tpg_mappedlun_stat_cit; | ||
| 30 | }; | ||
| 31 | |||
| 32 | struct target_fabric_configfs { | 8 | struct target_fabric_configfs { |
| 33 | atomic_t tf_access_cnt; | 9 | atomic_t tf_access_cnt; |
| 34 | struct list_head tf_list; | 10 | struct list_head tf_list; |
| @@ -36,6 +12,26 @@ struct target_fabric_configfs { | |||
| 36 | struct config_group tf_disc_group; | 12 | struct config_group tf_disc_group; |
| 37 | struct config_group *tf_default_groups[2]; | 13 | struct config_group *tf_default_groups[2]; |
| 38 | const struct target_core_fabric_ops *tf_ops; | 14 | const struct target_core_fabric_ops *tf_ops; |
| 39 | struct target_fabric_configfs_template tf_cit_tmpl; | ||
| 40 | }; | ||
| 41 | 15 | ||
| 16 | struct config_item_type tf_discovery_cit; | ||
| 17 | struct config_item_type tf_wwn_cit; | ||
| 18 | struct config_item_type tf_wwn_fabric_stats_cit; | ||
| 19 | struct config_item_type tf_tpg_cit; | ||
| 20 | struct config_item_type tf_tpg_base_cit; | ||
| 21 | struct config_item_type tf_tpg_lun_cit; | ||
| 22 | struct config_item_type tf_tpg_port_cit; | ||
| 23 | struct config_item_type tf_tpg_port_stat_cit; | ||
| 24 | struct config_item_type tf_tpg_np_cit; | ||
| 25 | struct config_item_type tf_tpg_np_base_cit; | ||
| 26 | struct config_item_type tf_tpg_attrib_cit; | ||
| 27 | struct config_item_type tf_tpg_auth_cit; | ||
| 28 | struct config_item_type tf_tpg_param_cit; | ||
| 29 | struct config_item_type tf_tpg_nacl_cit; | ||
| 30 | struct config_item_type tf_tpg_nacl_base_cit; | ||
| 31 | struct config_item_type tf_tpg_nacl_attrib_cit; | ||
| 32 | struct config_item_type tf_tpg_nacl_auth_cit; | ||
| 33 | struct config_item_type tf_tpg_nacl_param_cit; | ||
| 34 | struct config_item_type tf_tpg_nacl_stat_cit; | ||
| 35 | struct config_item_type tf_tpg_mappedlun_cit; | ||
| 36 | struct config_item_type tf_tpg_mappedlun_stat_cit; | ||
| 37 | }; | ||
