summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Sun <sunjunchao2870@gmail.com>2024-07-21 08:43:24 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-08-22 02:07:25 -0400
commitdef183ccbab2d8b80c1ce0bb08e484bbeaaa4b80 (patch)
treebf5669382f2818988c304ce6caa476e46cca328b
parent755fc4699a80300563f6a18556a27622ea5e906d (diff)
bcachefs: remove the unused macro definition
macro bch2_kthread_wait_event_ioclock_timeout is no longer used, let's remove it. The patch has passed compilation test. Signed-off-by: Julian Sun <sunjunchao2870@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/clock.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/bcachefs/clock.h b/fs/bcachefs/clock.h
index 85c975dfbcfe..82c79c8baf92 100644
--- a/fs/bcachefs/clock.h
+++ b/fs/bcachefs/clock.h
@@ -20,15 +20,6 @@ static inline void bch2_increment_clock(struct bch_fs *c, u64 sectors,
void bch2_io_clock_schedule_timeout(struct io_clock *, u64);
-#define bch2_kthread_wait_event_ioclock_timeout(condition, clock, timeout)\
-({ \
- long __ret = timeout; \
- might_sleep(); \
- if (!___wait_cond_timeout(condition)) \
- __ret = __wait_event_timeout(wq, condition, timeout); \
- __ret; \
-})
-
void bch2_io_timers_to_text(struct printbuf *, struct io_clock *);
void bch2_io_clock_exit(struct io_clock *);