summaryrefslogtreecommitdiff
path: root/include/linux/srcu.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-11-13 14:41:06 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2020-11-16 18:23:54 -0500
commit13f53aa228c83731226f4a359983215f1f7c2a47 (patch)
treef13df1911f064fe507afbd2420d49be797904e63 /include/linux/srcu.h
parent3420d86959401e5884627efdf3c2361e50b05eaa (diff)
Update bcachefs sources to d1fd471830 bcachefs: Add more debug checks
Diffstat (limited to 'include/linux/srcu.h')
-rw-r--r--include/linux/srcu.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/srcu.h b/include/linux/srcu.h
new file mode 100644
index 0000000..75823cf
--- /dev/null
+++ b/include/linux/srcu.h
@@ -0,0 +1,31 @@
+#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 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 */