Lines Matching refs:bch_fs

7 void bch2_snapshot_tree_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
8 int bch2_snapshot_tree_validate(struct bch_fs *, struct bkey_s_c,
21 void bch2_snapshot_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
22 int bch2_snapshot_validate(struct bch_fs *, struct bkey_s_c, enum bch_validate_flags);
43 static inline const struct snapshot_t *snapshot_t(struct bch_fs *c, u32 id) in snapshot_t()
48 static inline u32 bch2_snapshot_tree(struct bch_fs *c, u32 id) in bch2_snapshot_tree()
58 static inline u32 __bch2_snapshot_parent_early(struct bch_fs *c, u32 id) in __bch2_snapshot_parent_early()
64 static inline u32 bch2_snapshot_parent_early(struct bch_fs *c, u32 id) in bch2_snapshot_parent_early()
73 static inline u32 __bch2_snapshot_parent(struct bch_fs *c, u32 id) in __bch2_snapshot_parent()
90 static inline u32 bch2_snapshot_parent(struct bch_fs *c, u32 id) in bch2_snapshot_parent()
99 static inline u32 bch2_snapshot_nth_parent(struct bch_fs *c, u32 id, u32 n) in bch2_snapshot_nth_parent()
109 u32 bch2_snapshot_skiplist_get(struct bch_fs *, u32);
111 static inline u32 bch2_snapshot_root(struct bch_fs *c, u32 id) in bch2_snapshot_root()
123 static inline u32 __bch2_snapshot_equiv(struct bch_fs *c, u32 id) in __bch2_snapshot_equiv()
129 static inline u32 bch2_snapshot_equiv(struct bch_fs *c, u32 id) in bch2_snapshot_equiv()
138 static inline int bch2_snapshot_is_internal_node(struct bch_fs *c, u32 id) in bch2_snapshot_is_internal_node()
148 static inline int bch2_snapshot_is_leaf(struct bch_fs *c, u32 id) in bch2_snapshot_is_leaf()
156 static inline u32 bch2_snapshot_depth(struct bch_fs *c, u32 parent) in bch2_snapshot_depth()
167 bool __bch2_snapshot_is_ancestor(struct bch_fs *, u32, u32);
169 static inline bool bch2_snapshot_is_ancestor(struct bch_fs *c, u32 id, u32 ancestor) in bch2_snapshot_is_ancestor()
176 static inline bool bch2_snapshot_has_children(struct bch_fs *c, u32 id) in bch2_snapshot_has_children()
194 static inline bool snapshot_list_has_ancestor(struct bch_fs *c, snapshot_id_list *s, u32 id) in snapshot_list_has_ancestor()
202 static inline int snapshot_list_add(struct bch_fs *c, snapshot_id_list *s, u32 id) in snapshot_list_add()
211 static inline int snapshot_list_add_nodup(struct bch_fs *c, snapshot_id_list *s, u32 id) in snapshot_list_add_nodup()
221 static inline int snapshot_list_merge(struct bch_fs *c, snapshot_id_list *dst, snapshot_id_list *sr… in snapshot_list_merge()
241 int bch2_check_snapshot_trees(struct bch_fs *);
242 int bch2_check_snapshots(struct bch_fs *);
243 int bch2_reconstruct_snapshots(struct bch_fs *);
262 int bch2_snapshots_read(struct bch_fs *);
263 void bch2_fs_snapshots_exit(struct bch_fs *);