diff options
author | Andy Grover <agrover@redhat.com> | 2012-07-12 20:34:58 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-07-16 20:35:24 -0400 |
commit | e80ac6c4cc073d54daef8ba4ced88347d130d314 (patch) | |
tree | dfa41df2e34fc759e3b9c1b47efec0fdc73799c3 /drivers/target/target_core_internal.h | |
parent | cdf88a2fe3825458c584cd751aa843ab3af6a42c (diff) |
target: refactor core_update_device_list_for_node()
Code was almost entirely divided based on value of bool param "enable".
Split it into two functions.
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_internal.h')
-rw-r--r-- | drivers/target/target_core_internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/target/target_core_internal.h b/drivers/target/target_core_internal.h index d41a9bb89ce1..0fd428225d11 100644 --- a/drivers/target/target_core_internal.h +++ b/drivers/target/target_core_internal.h | |||
@@ -10,8 +10,10 @@ int core_free_device_list_for_node(struct se_node_acl *, | |||
10 | struct se_portal_group *); | 10 | struct se_portal_group *); |
11 | void core_dec_lacl_count(struct se_node_acl *, struct se_cmd *); | 11 | void core_dec_lacl_count(struct se_node_acl *, struct se_cmd *); |
12 | void core_update_device_list_access(u32, u32, struct se_node_acl *); | 12 | void core_update_device_list_access(u32, u32, struct se_node_acl *); |
13 | int core_update_device_list_for_node(struct se_lun *, struct se_lun_acl *, | 13 | int core_enable_device_list_for_node(struct se_lun *, struct se_lun_acl *, |
14 | u32, u32, struct se_node_acl *, struct se_portal_group *, int); | 14 | u32, u32, struct se_node_acl *, struct se_portal_group *); |
15 | int core_disable_device_list_for_node(struct se_lun *, struct se_lun_acl *, | ||
16 | u32, u32, struct se_node_acl *, struct se_portal_group *); | ||
15 | void core_clear_lun_from_tpg(struct se_lun *, struct se_portal_group *); | 17 | void core_clear_lun_from_tpg(struct se_lun *, struct se_portal_group *); |
16 | int core_dev_export(struct se_device *, struct se_portal_group *, | 18 | int core_dev_export(struct se_device *, struct se_portal_group *, |
17 | struct se_lun *); | 19 | struct se_lun *); |