summaryrefslogtreecommitdiff
path: root/libbcachefs/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-01-10 21:41:51 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2022-01-10 21:41:51 -0500
commit74a7c3ff5732598431801bb0b4bd844f1d69aa90 (patch)
tree9d56673bfd488f3d6673d22a78dc4552dd9dd4d2 /libbcachefs/super.c
parentb3984515eba163d734badecfef46e2be67a3b7eb (diff)
Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation
Diffstat (limited to 'libbcachefs/super.c')
-rw-r--r--libbcachefs/super.c3
1 files changed, 3 insertions, 0 deletions
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) ?: