linux/fs/bcachefs/seqmutex.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _BCACHEFS_SEQMUTEX_H
#define _BCACHEFS_SEQMUTEX_H

#include <linux/mutex.h>

struct seqmutex {};

#define seqmutex_init(_lock)

static inline bool seqmutex_trylock(struct seqmutex *lock)
{}

static inline void seqmutex_lock(struct seqmutex *lock)
{}

static inline u32 seqmutex_unlock(struct seqmutex *lock)
{}

static inline bool seqmutex_relock(struct seqmutex *lock, u32 seq)
{}

#endif /* _BCACHEFS_SEQMUTEX_H */