summaryrefslogtreecommitdiffstats
path: root/policy.c
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-02-29 12:52:16 +0100
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-03-11 11:09:39 +0100
commite492d2ac143e7f02d6c262130d42a4422e8295d5 (patch)
tree06f82faa5a6d6658f365b46047c048c973980a89 /policy.c
parentimsm: test_and_add_device_policies() implementation (diff)
downloadmdadm-e492d2ac143e7f02d6c262130d42a4422e8295d5.tar.xz
mdadm-e492d2ac143e7f02d6c262130d42a4422e8295d5.zip
mdadm: drop get_disk_controller_domain()
This function is unused now. Drop it. Controller for IMSM is a device policy and is separated from user defined domains. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'policy.c')
-rw-r--r--policy.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/policy.c b/policy.c
index 4b85f62d..404f9b5d 100644
--- a/policy.c
+++ b/policy.c
@@ -365,7 +365,6 @@ struct dev_policy *path_policy(char **paths, char *type)
{
struct pol_rule *rules;
struct dev_policy *pol = NULL;
- int i;
rules = config_rules;
@@ -380,18 +379,6 @@ struct dev_policy *path_policy(char **paths, char *type)
rules = rules->next;
}
- /* Now add any metadata-specific internal knowledge
- * about this path
- */
- for (i=0; paths && paths[0] && superlist[i]; i++)
- if (superlist[i]->get_disk_controller_domain) {
- const char *d =
- superlist[i]->get_disk_controller_domain(
- paths[0]);
- if (d)
- pol_new(&pol, pol_domain, d, superlist[i]->name);
- }
-
pol_sort(&pol);
pol_dedup(pol);
return pol;