From c9b388d2f0ee95392c3ed7f89df48b5730fdccb5 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 28 Mar 2018 06:45:42 -0400 Subject: bcachefs: increase max nr of io timers this fixes a BUG_ON() when running with too many devices --- fs/bcachefs/clock_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/clock_types.h b/fs/bcachefs/clock_types.h index bfd4b3030e35..df404b6dd3fe 100644 --- a/fs/bcachefs/clock_types.h +++ b/fs/bcachefs/clock_types.h @@ -3,7 +3,7 @@ #include "util.h" -#define NR_IO_TIMERS 8 +#define NR_IO_TIMERS (BCH_SB_MEMBERS_MAX * 3) /* * Clocks/timers in units of sectors of IO: -- cgit v1.2.3