bcachefs-tools/libbcachefs/two_state_shared_lock.c
Kent Overstreet b5fd066153 Move c_src dirs back to toplevel
We just wanted c sourcefiles out of the top level, not c source
directories.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-16 17:17:23 -05:00

9 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));
}