From 74a7c3ff5732598431801bb0b4bd844f1d69aa90 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 10 Jan 2022 21:41:51 -0500 Subject: Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation --- libbcachefs/super.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbcachefs/super.c') diff --git a/libbcachefs/super.c b/libbcachefs/super.c index 577b58e4..586ba60d 100644 --- a/libbcachefs/super.c +++ b/libbcachefs/super.c @@ -16,6 +16,7 @@ #include "btree_key_cache.h" #include "btree_update_interior.h" #include "btree_io.h" +#include "buckets_waiting_for_journal.h" #include "chardev.h" #include "checksum.h" #include "clock.h" @@ -468,6 +469,7 @@ static void __bch2_fs_free(struct bch_fs *c) bch2_fs_ec_exit(c); bch2_fs_encryption_exit(c); bch2_fs_io_exit(c); + bch2_fs_buckets_waiting_for_journal_exit(c); bch2_fs_btree_interior_update_exit(c); bch2_fs_btree_iter_exit(c); bch2_fs_btree_key_cache_exit(&c->btree_key_cache); @@ -810,6 +812,7 @@ static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts opts) bch2_fs_btree_key_cache_init(&c->btree_key_cache) ?: bch2_fs_btree_iter_init(c) ?: bch2_fs_btree_interior_update_init(c) ?: + bch2_fs_buckets_waiting_for_journal_init(c); bch2_fs_subvolumes_init(c) ?: bch2_fs_io_init(c) ?: bch2_fs_encryption_init(c) ?: -- cgit v1.2.3