#ifndef _BCACHEFS_TWO_STATE_LOCK_H
#define _BCACHEFS_TWO_STATE_LOCK_H
#include <linux/atomic.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include "util.h"
two_state_lock_t;
static inline void two_state_lock_init(two_state_lock_t *lock)
{ … }
static inline void bch2_two_state_unlock(two_state_lock_t *lock, int s)
{ … }
static inline bool bch2_two_state_trylock(two_state_lock_t *lock, int s)
{ … }
void __bch2_two_state_lock(two_state_lock_t *, int);
static inline void bch2_two_state_lock(two_state_lock_t *lock, int s)
{ … }
#endif