Lines Matching full:weight
86 * The metaslab weight is used to encode the amount of free space in a
88 * metaslabs by weight. The weight (and therefore the "best" metaslab) can
90 * the free space in the metaslab (a space based weight) or by counting only
91 * the free segments of the largest size (a segment based weight). We prefer
92 * the segment based weight because it reflects how the free space is
96 * the segment weight by looking at each bucket in the histogram and
102 * Space-based weight:
113 * Segment-based weight:
125 #define WEIGHT_GET_ACTIVE(weight) BF64_GET((weight), 61, 3) argument
126 #define WEIGHT_SET_ACTIVE(weight, x) BF64_SET((weight), 61, 3, x) argument
128 #define WEIGHT_IS_SPACEBASED(weight) \ argument
129 ((weight) == 0 || BF64_GET((weight), 60, 1))
130 #define WEIGHT_SET_SPACEBASED(weight) BF64_SET((weight), 60, 1, 1) argument
135 #define WEIGHT_GET_INDEX(weight) BF64_GET((weight), 54, 6) argument
136 #define WEIGHT_SET_INDEX(weight, x) BF64_SET((weight), 54, 6, x) argument
137 #define WEIGHT_GET_COUNT(weight) BF64_GET((weight), 0, 54) argument
138 #define WEIGHT_SET_COUNT(weight, x) BF64_SET((weight), 0, 54, x) argument
425 * ms_allocatable if it is loaded). The weight is computed from
429 * weight, we need to remove those ranges.
442 * When calculating the weight, we can not simply subtract the
467 uint64_t ms_weight; /* weight vs. others in group */
468 uint64_t ms_activation_weight; /* activation weight */