Lines Matching defs:weight
693 metaslab_group_sort(metaslab_group_t *mg, metaslab_t *msp, uint64_t weight)
696 * Although in principle the weight can be any value, in
699 ASSERT(weight >= SPA_MINBLOCKSIZE || weight == 0);
705 msp->ms_weight = weight;
1427 * Compute a weight -- a selection preference value -- for the given metaslab.
1436 uint64_t weight, space;
1451 * The baseline weight is the metaslab's free space.
1460 * down the baseline weight. We need to ensure that we
1477 weight = space;
1484 * higher weight to lower metaslabs (multiplier ranging from 2x to 1x).
1489 weight = 2 * weight - (msp->ms_id * weight) / vd->vdev_ms_count;
1490 ASSERT(weight >= space && weight <= 2 * space);
1495 * weight to make it preferable to any inactive metaslab so
1501 weight |= (msp->ms_weight & METASLAB_ACTIVE_MASK);
1504 return (weight);
2064 spa_dbgmsg(spa, "%s: failed to meet weight "
2067 "weight %llu", spa_name(spa),
2104 * another thread may have changed the weight while we