Skip to content

Commit 6de2ce5

Browse files
Christoph HellwigNicholas Bellinger
authored andcommitted
target: remove target_core_configfs.h
The remaining defintions are private to the target core and can be merged into target_core_internal.h. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent 1315c7c commit 6de2ce5

5 files changed

Lines changed: 34 additions & 37 deletions

File tree

‎drivers/target/target_core_configfs.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include <target/target_core_backend.h>
4242
#include <target/target_core_fabric.h>
4343
#include <target/target_core_fabric_configfs.h>
44-
#include <target/target_core_configfs.h>
4544
#include <target/configfs_macros.h>
4645

4746
#include "target_core_internal.h"

‎drivers/target/target_core_fabric_configfs.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include <target/target_core_base.h>
3737
#include <target/target_core_fabric.h>
3838
#include <target/target_core_fabric_configfs.h>
39-
#include <target/target_core_configfs.h>
4039
#include <target/configfs_macros.h>
4140

4241
#include "target_core_internal.h"

‎drivers/target/target_core_internal.h‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef TARGET_CORE_INTERNAL_H
22
#define TARGET_CORE_INTERNAL_H
33

4+
#define TARGET_CORE_NAME_MAX_LEN 64
5+
#define TARGET_FABRIC_NAME_SIZE 32
6+
47
struct target_backend {
58
struct list_head list;
69

@@ -14,6 +17,37 @@ struct target_backend {
1417
struct config_item_type tb_dev_stat_cit;
1518
};
1619

20+
struct target_fabric_configfs {
21+
atomic_t tf_access_cnt;
22+
struct list_head tf_list;
23+
struct config_group tf_group;
24+
struct config_group tf_disc_group;
25+
struct config_group *tf_default_groups[2];
26+
const struct target_core_fabric_ops *tf_ops;
27+
28+
struct config_item_type tf_discovery_cit;
29+
struct config_item_type tf_wwn_cit;
30+
struct config_item_type tf_wwn_fabric_stats_cit;
31+
struct config_item_type tf_tpg_cit;
32+
struct config_item_type tf_tpg_base_cit;
33+
struct config_item_type tf_tpg_lun_cit;
34+
struct config_item_type tf_tpg_port_cit;
35+
struct config_item_type tf_tpg_port_stat_cit;
36+
struct config_item_type tf_tpg_np_cit;
37+
struct config_item_type tf_tpg_np_base_cit;
38+
struct config_item_type tf_tpg_attrib_cit;
39+
struct config_item_type tf_tpg_auth_cit;
40+
struct config_item_type tf_tpg_param_cit;
41+
struct config_item_type tf_tpg_nacl_cit;
42+
struct config_item_type tf_tpg_nacl_base_cit;
43+
struct config_item_type tf_tpg_nacl_attrib_cit;
44+
struct config_item_type tf_tpg_nacl_auth_cit;
45+
struct config_item_type tf_tpg_nacl_param_cit;
46+
struct config_item_type tf_tpg_nacl_stat_cit;
47+
struct config_item_type tf_tpg_mappedlun_cit;
48+
struct config_item_type tf_tpg_mappedlun_stat_cit;
49+
};
50+
1751
/* target_core_alua.c */
1852
extern struct t10_alua_lu_gp *default_lu_gp;
1953

‎drivers/target/target_core_tpg.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
#include <target/target_core_base.h>
3939
#include <target/target_core_backend.h>
40-
#include <target/target_core_configfs.h>
4140
#include <target/target_core_fabric.h>
4241

4342
#include "target_core_internal.h"

‎include/target/target_core_configfs.h‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)