METASLAB_ACTIVE_MASK
weight & ~(METASLAB_ACTIVE_MASK | METASLAB_WEIGHT_TYPE),
uint64_t was_active = msp->ms_weight & METASLAB_ACTIVE_MASK;
msp->ms_weight &= ~METASLAB_ACTIVE_MASK;
weight |= (msp->ms_weight & METASLAB_ACTIVE_MASK);
uint64_t was_active = msp->ms_weight & METASLAB_ACTIVE_MASK;
if ((msp->ms_weight & METASLAB_ACTIVE_MASK) != 0) {
if ((msp->ms_weight & METASLAB_ACTIVE_MASK) != 0) {
ASSERT(msp->ms_weight & METASLAB_ACTIVE_MASK);
ASSERT0(weight & METASLAB_ACTIVE_MASK);
ASSERT0(msp->ms_weight & METASLAB_ACTIVE_MASK);
metaslab_passivate(msp, msp->ms_weight & ~METASLAB_ACTIVE_MASK);
~METASLAB_ACTIVE_MASK);
if ((msp->ms_weight & METASLAB_ACTIVE_MASK) == 0)
ASSERT(msp->ms_weight & METASLAB_ACTIVE_MASK);
ASSERT(msp->ms_weight & METASLAB_ACTIVE_MASK);
if (was_active && !(msp->ms_weight & METASLAB_ACTIVE_MASK)) {
if (!was_active && (msp->ms_weight & METASLAB_ACTIVE_MASK) &&
~METASLAB_ACTIVE_MASK);
~METASLAB_ACTIVE_MASK);
weight |= msp->ms_weight & METASLAB_ACTIVE_MASK;
ASSERT0(m->ms_weight & METASLAB_ACTIVE_MASK);