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