Home
last modified time | relevance | path

Searched refs:prior_state (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/drivers/md/dm-vdo/
H A Drecovery-journal.c145 int prior_state; in vdo_release_recovery_journal_block_reference() local
177 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() local
310 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() local
1655 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()
H A Dslab-depot.c2760 enum vdo_state prior_state = in finish_scrubbing() local
2775 if (prior_state == VDO_DIRTY) in finish_scrubbing()
2777 else if (prior_state == VDO_RECOVERING) in finish_scrubbing()