thesis/linux-6.8.1/fs/bcachefs/two_state_shared_lock.c
2025-03-19 13:44:23 +01:00

8 lines
195 B
C

// SPDX-License-Identifier: GPL-2.0
#include "two_state_shared_lock.h"
void __bch2_two_state_lock(two_state_lock_t *lock, int s)
{
__wait_event(lock->wait, bch2_two_state_trylock(lock, s));
}