From: Nikita Ofitserov <himi...@gmail.com>

Signed-off-by: Nikita Ofitserov <himi...@gmail.com>
---
 fs/bcachefs/progress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/bcachefs/progress.c b/fs/bcachefs/progress.c
index 
792fc6fef27018c73168c59857e7f3497c1969f4..541ee951d1c9fc3f11b5a5ac40f1d366829a5c97
 100644
--- a/fs/bcachefs/progress.c
+++ b/fs/bcachefs/progress.c
@@ -12,7 +12,7 @@ void bch2_progress_init(struct progress_indicator_state *s,
 
        s->next_print = jiffies + HZ * 10;
 
-       for (unsigned i = 0; i < BTREE_ID_NR; i++) {
+       for (unsigned i = 0; i < btree_id_nr_alive(c); i++) {
                if (!(btree_id_mask & BIT_ULL(i)))
                        continue;
 

-- 
2.50.1



Reply via email to