Remove unnecessary check for U64_MAX values when refreshing compaction scheduler settings
@@ -620,7 +620,6 @@ sp3_refresh_thresholds(struct sp3 *sp)
/* root node spill settings */
v = sp->rp->csched_rspill_params;
- if (v != U64_MAX) {
if (v) {
thresh.rspill_kvsets_max = (v >> 0) & 0xff;
thresh.rspill_kvsets_min = (v >> 8) & 0xff;
@@ -629,11 +628,9 @@ sp3_refresh_thresholds(struct sp3 *sp)
thresh.rspill_kvsets_min = 5;
}
thresh.rspill_kvsets_min = max(thresh.rspill_kvsets_min, SP3_RSPILL_KVSETS_MIN);
- }
/* leaf node compaction settings */
v = sp->rp->csched_leaf_comp_params;
- if (v != U64_MAX) {
if (v) {
thresh.lcomp_kvsets_max = (v >> 0) & 0xff;
thresh.lcomp_kvsets_min = (v >> 8) & 0xff;
@@ -646,11 +643,9 @@ sp3_refresh_thresholds(struct sp3 *sp)
thresh.lcomp_pop_keys = 128; /* units of 4 billion */
}
thresh.lcomp_kvsets_min = max(thresh.lcomp_kvsets_min, SP3_LCOMP_KVSETS_MIN);
- }
/* leaf node length settings */
v = sp->rp->csched_leaf_len_params;
- if (v != U64_MAX) {
if (v) {
thresh.llen_runlen_max = (v >> 0) & 0xff;
thresh.llen_runlen_min = (v >> 8) & 0xff;
@@ -663,7 +658,6 @@ sp3_refresh_thresholds(struct sp3 *sp)
thresh.llen_idlem = 10;
}
thresh.llen_runlen_min = max(thresh.llen_runlen_min, SP3_LLEN_RUNLEN_MIN);
- }
/* max vgroups in a kvset */
thresh.max_vgroups = sp->rp->csched_max_vgroups;
