bcachefs-tools/include/linux/srcu.h
Kent Overstreet fc06a0ea5e Update bcachefs sources to c56e1ec97dfd bcachefs: Fix bch2_sb_downgrade_update()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-17 12:38:43 -04:00

39 lines
792 B
C

#ifndef __TOOLS_LINUX_SRCU_H
#define __TOOLS_LINUX_SRCU_H
struct srcu_struct {
};
static inline void srcu_read_unlock(struct srcu_struct *ssp, int idx) {}
static inline int srcu_read_lock(struct srcu_struct *ssp)
{
return 0;
}
static inline bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)
{
return false;
}
static inline unsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)
{
return 0;
}
static inline unsigned long get_state_synchronize_srcu(struct srcu_struct *ssp)
{
return 0;
}
static inline void synchronize_srcu_expedited(struct srcu_struct *ssp) {}
static inline void cleanup_srcu_struct(struct srcu_struct *ssp) {}
static inline int init_srcu_struct(struct srcu_struct *ssp)
{
return 0;
}
#endif /* __TOOLS_LINUX_SRCU_H */