From 5add07d56a5e714a6ac1bedffa9b999d2966708c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 17 Feb 2022 03:11:39 -0500 Subject: bcachefs: Fsck for need_discard & freespace btrees Signed-off-by: Kent Overstreet --- fs/bcachefs/alloc_background.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/bcachefs/alloc_background.h') diff --git a/fs/bcachefs/alloc_background.h b/fs/bcachefs/alloc_background.h index d4883d3cd642..d82e80218b8e 100644 --- a/fs/bcachefs/alloc_background.h +++ b/fs/bcachefs/alloc_background.h @@ -113,6 +113,8 @@ int bch2_alloc_read(struct bch_fs *, bool, bool); int bch2_trans_mark_alloc(struct btree_trans *, struct bkey_s_c, struct bkey_i *, unsigned); +int bch2_check_alloc_info(struct bch_fs *, bool); +int bch2_check_alloc_to_lru_refs(struct bch_fs *); void bch2_do_discards(struct bch_fs *); static inline bool should_invalidate_buckets(struct bch_dev *ca) -- cgit v1.2.3