Searched refs:prior_state (Results 1 – 2 of 2) sorted by relevance
145 int prior_state; in vdo_release_recovery_journal_block_reference() local177 prior_state = atomic_cmpxchg(&journal->lock_counter.state, in vdo_release_recovery_journal_block_reference()183 if (prior_state != LOCK_COUNTER_STATE_NOT_NOTIFYING) in vdo_release_recovery_journal_block_reference()303 int prior_state; in suspend_lock_counter() local310 prior_state = atomic_cmpxchg(&counter->state, LOCK_COUNTER_STATE_NOT_NOTIFYING, in suspend_lock_counter()315 return ((prior_state == LOCK_COUNTER_STATE_SUSPENDED) || in suspend_lock_counter()316 (prior_state == LOCK_COUNTER_STATE_NOT_NOTIFYING)); in suspend_lock_counter()1648 int prior_state; in resume_lock_counter() local1655 prior_state = atomic_cmpxchg(&counter->state, LOCK_COUNTER_STATE_SUSPENDED, in resume_lock_counter()1660 return (prior_state == LOCK_COUNTER_STATE_SUSPENDED); in resume_lock_counter()
2760 enum vdo_state prior_state = in finish_scrubbing() local2775 if (prior_state == VDO_DIRTY) in finish_scrubbing()2777 else if (prior_state == VDO_RECOVERING) in finish_scrubbing()