return v;
} /* }}} disk_t *get_disk */
-static void set_global_perf_vol_flag(const host_config_t *host, /* {{{ */
+static void host_set_all_perf_data_flags(const host_config_t *host, /* {{{ */
uint32_t flag, _Bool set)
{
volume_t *v;
else /* if (!set) */
v->perf_data.flags &= ~flag;
}
-} /* }}} void set_global_perf_vol_flag */
+} /* }}} void host_set_all_perf_data_flags */
-static void set_global_vol_flag(const host_config_t *host, /* {{{ */
+static void host_set_all_cfg_volume_usage_flags(const host_config_t *host, /* {{{ */
uint32_t flag, _Bool set) {
volume_t *v;
else /* if (!set) */
v->cfg_volume_usage.flags &= ~flag;
}
-} /* }}} void set_global_vol_flag */
+} /* }}} void host_set_all_cfg_volume_usage_flags */
/*
* Various submit functions.
else /* if (!set) */
perf_volume->flags &= ~flag;
- set_global_perf_vol_flag(host, flag, set);
+ host_set_all_perf_data_flags(host, flag, set);
continue;
}
}
if (!had_io) {
perf_volume->flags |= CFG_VOLUME_PERF_IO;
- set_global_perf_vol_flag(host, CFG_VOLUME_PERF_IO, /* set = */ true);
+ host_set_all_perf_data_flags(host, CFG_VOLUME_PERF_IO, /* set = */ true);
}
if (!had_ops) {
perf_volume->flags |= CFG_VOLUME_PERF_OPS;
- set_global_perf_vol_flag(host, CFG_VOLUME_PERF_OPS, /* set = */ true);
+ host_set_all_perf_data_flags(host, CFG_VOLUME_PERF_OPS, /* set = */ true);
}
if (!had_latency) {
perf_volume->flags |= CFG_VOLUME_PERF_LATENCY;
- set_global_perf_vol_flag(host, CFG_VOLUME_PERF_LATENCY, /* set = */ true);
+ host_set_all_perf_data_flags(host, CFG_VOLUME_PERF_LATENCY, /* set = */ true);
}
} /* }}} void cna_config_volume_performance */
else /* if (!set) */
cfg_volume_data->flags &= ~flag;
- set_global_vol_flag(host, flag, set);
+ host_set_all_cfg_volume_usage_flags(host, flag, set);
continue;
}
}
if (!had_df) {
cfg_volume_data->flags |= VOLUME_DF;
- set_global_vol_flag(host, VOLUME_DF, /* set = */ true);
+ host_set_all_cfg_volume_usage_flags(host, VOLUME_DF, /* set = */ true);
}
} /* }}} void cna_config_volume_usage */