summaryrefslogtreecommitdiff
path: root/include/linux/srcu.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-12-03 21:33:02 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-12-03 21:51:54 -0500
commitac124c88859e6520e01d11a346e38f901052d657 (patch)
tree2a9102c5c02b725507bf33bc0c83b26c7e8fdfa8 /include/linux/srcu.h
parentc560ff06f4798f27aa7b3ae322c83d5a9ba37b13 (diff)
Update bcachefs sources to 4a32728376a8 bcachefs: bcachefs_metadata_version_inode_depth
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/srcu.h')
-rw-r--r--include/linux/srcu.h34
1 files changed, 11 insertions, 23 deletions
diff --git a/include/linux/srcu.h b/include/linux/srcu.h
index b93cb8e3..7aa2b964 100644
--- a/include/linux/srcu.h
+++ b/include/linux/srcu.h
@@ -7,6 +7,11 @@
typedef void (*rcu_callback_t)(struct rcu_head *head);
+static inline struct urcu_gp_poll_state get_state_synchronize_rcu()
+{
+ return start_poll_synchronize_rcu();
+}
+
struct srcu_struct {
};
@@ -17,36 +22,19 @@ 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 true;
-}
-
-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;
-}
-
-#undef poll_state_synchronize_rcu
-static inline bool poll_state_synchronize_rcu(unsigned long cookie)
+static inline bool poll_state_synchronize_srcu(struct srcu_struct *ssp, struct urcu_gp_poll_state cookie)
{
- return false;
+ return poll_state_synchronize_rcu(cookie);
}
-#undef start_poll_synchronize_rcu
-static inline unsigned long start_poll_synchronize_rcu()
+static inline struct urcu_gp_poll_state start_poll_synchronize_srcu(struct srcu_struct *ssp)
{
- return 0;
+ return start_poll_synchronize_rcu();
}
-static inline unsigned long get_state_synchronize_rcu()
+static inline struct urcu_gp_poll_state get_state_synchronize_srcu(struct srcu_struct *ssp)
{
- return 0;
+ return get_state_synchronize_rcu();
}
static inline void synchronize_srcu_expedited(struct srcu_struct *ssp) {}