xref: /linux/fs/bcachefs/btree_node_scan.h (revision 2697b79a469b68e3ad3640f55284359c1396278d)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_BTREE_NODE_SCAN_H
3 #define _BCACHEFS_BTREE_NODE_SCAN_H
4 
5 int bch2_scan_for_btree_nodes(struct bch_fs *);
6 bool bch2_btree_node_is_stale(struct bch_fs *, struct btree *);
7 bool bch2_btree_has_scanned_nodes(struct bch_fs *, enum btree_id);
8 int bch2_get_scanned_nodes(struct bch_fs *, enum btree_id, unsigned, struct bpos, struct bpos);
9 void bch2_find_btree_nodes_exit(struct find_btree_nodes *);
10 
11 #endif /* _BCACHEFS_BTREE_NODE_SCAN_H */
12