xref: /linux/fs/bcachefs/btree_node_scan.h (revision 4b132aacb0768ac1e652cf517097ea6f237214b9)
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