Lines Matching refs:bch_fs

5 void bch2_snapshot_tree_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
6 int bch2_snapshot_tree_validate(struct bch_fs *, struct bkey_s_c,
19 void bch2_snapshot_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
20 int bch2_snapshot_validate(struct bch_fs *, struct bkey_s_c,
42 static inline const struct snapshot_t *snapshot_t(struct bch_fs *c, u32 id) in snapshot_t()
47 static inline u32 bch2_snapshot_tree(struct bch_fs *c, u32 id) in bch2_snapshot_tree()
57 static inline u32 __bch2_snapshot_parent_early(struct bch_fs *c, u32 id) in __bch2_snapshot_parent_early()
63 static inline u32 bch2_snapshot_parent_early(struct bch_fs *c, u32 id) in bch2_snapshot_parent_early()
72 static inline u32 __bch2_snapshot_parent(struct bch_fs *c, u32 id) in __bch2_snapshot_parent()
89 static inline u32 bch2_snapshot_parent(struct bch_fs *c, u32 id) in bch2_snapshot_parent()
98 static inline u32 bch2_snapshot_nth_parent(struct bch_fs *c, u32 id, u32 n) in bch2_snapshot_nth_parent()
108 u32 bch2_snapshot_skiplist_get(struct bch_fs *, u32);
110 static inline u32 bch2_snapshot_root(struct bch_fs *c, u32 id) in bch2_snapshot_root()
122 static inline bool __bch2_snapshot_exists(struct bch_fs *c, u32 id) in __bch2_snapshot_exists()
128 static inline bool bch2_snapshot_exists(struct bch_fs *c, u32 id) in bch2_snapshot_exists()
137 static inline int bch2_snapshot_is_internal_node(struct bch_fs *c, u32 id) in bch2_snapshot_is_internal_node()
147 static inline int bch2_snapshot_is_leaf(struct bch_fs *c, u32 id) in bch2_snapshot_is_leaf()
155 static inline u32 bch2_snapshot_depth(struct bch_fs *c, u32 parent) in bch2_snapshot_depth()
166 bool __bch2_snapshot_is_ancestor(struct bch_fs *, u32, u32);
168 static inline bool bch2_snapshot_is_ancestor(struct bch_fs *c, u32 id, u32 ancestor) in bch2_snapshot_is_ancestor()
175 static inline bool bch2_snapshot_has_children(struct bch_fs *c, u32 id) in bch2_snapshot_has_children()
193 static inline bool snapshot_list_has_ancestor(struct bch_fs *c, snapshot_id_list *s, u32 id) in snapshot_list_has_ancestor()
201 static inline int snapshot_list_add(struct bch_fs *c, snapshot_id_list *s, u32 id) in snapshot_list_add()
210 static inline int snapshot_list_add_nodup(struct bch_fs *c, snapshot_id_list *s, u32 id) in snapshot_list_add_nodup()
220 static inline int snapshot_list_merge(struct bch_fs *c, snapshot_id_list *dst, snapshot_id_list *sr… in snapshot_list_merge()
240 int bch2_check_snapshot_trees(struct bch_fs *);
241 int bch2_check_snapshots(struct bch_fs *);
242 int bch2_reconstruct_snapshots(struct bch_fs *);
261 int bch2_snapshots_read(struct bch_fs *);
262 void bch2_fs_snapshots_exit(struct bch_fs *);