Lines Matching defs:b
38 void bch2_btree_node_io_unlock(struct btree *b) in bch2_btree_node_io_unlock()
48 void bch2_btree_node_io_lock(struct btree *b) in bch2_btree_node_io_lock()
54 void __bch2_btree_node_wait_on_read(struct btree *b) in __bch2_btree_node_wait_on_read()
60 void __bch2_btree_node_wait_on_write(struct btree *b) in __bch2_btree_node_wait_on_write()
66 void bch2_btree_node_wait_on_read(struct btree *b) in bch2_btree_node_wait_on_read()
72 void bch2_btree_node_wait_on_write(struct btree *b) in bch2_btree_node_wait_on_write()
78 static void verify_no_dups(struct btree *b, in verify_no_dups()
137 unsigned n = nr, a = nr / 2, b, c, d; in sort_bkey_ptrs() local
171 static void bch2_sort_whiteouts(struct bch_fs *c, struct btree *b) in bch2_sort_whiteouts()
208 static bool should_compact_bset(struct btree *b, struct bset_tree *t, in should_compact_bset()
225 static bool bch2_drop_whiteouts(struct btree *b, enum compact_mode mode) in bch2_drop_whiteouts()
289 bool bch2_compact_whiteouts(struct bch_fs *c, struct btree *b, in bch2_compact_whiteouts()
295 static void btree_node_sort(struct bch_fs *c, struct btree *b, in btree_node_sort()
422 static bool btree_node_compact(struct bch_fs *c, struct btree *b) in btree_node_compact()
446 void bch2_btree_build_aux_trees(struct btree *b) in bch2_btree_build_aux_trees()
464 static inline bool should_compact_all(struct bch_fs *c, struct btree *b) in should_compact_all()
481 void bch2_btree_init_next(struct btree_trans *trans, struct btree *b) in bch2_btree_init_next()
517 struct btree *b, struct bset *i, struct bkey_packed *k, in btree_err_msg()
544 struct btree *b, in __btree_err()
615 #define btree_err(type, c, ca, b, i, k, _err_type, msg, ...) \ argument
636 void bch2_btree_node_drop_keys_outside_node(struct btree *b) in bch2_btree_node_drop_keys_outside_node()
683 struct btree *b, struct bset *i, in validate_bset()
837 static int btree_node_bkey_val_validate(struct bch_fs *c, struct btree *b, in btree_node_bkey_val_validate()
849 static int bset_key_validate(struct bch_fs *c, struct btree *b, in bset_key_validate()
865 static bool bkey_packed_valid(struct bch_fs *c, struct btree *b, in bkey_packed_valid()
888 static inline int btree_node_read_bkey_cmp(const struct btree *b, in btree_node_read_bkey_cmp()
896 static int validate_bset_keys(struct bch_fs *c, struct btree *b, in validate_bset_keys()
1011 struct btree *b, bool have_retry, bool *saw_error) in bch2_btree_node_read_done()
1320 struct btree *b = rb->b; in btree_node_read_work() local
1425 struct btree *b; member
1478 struct btree *b = ra->b; in CLOSURE_CALLBACK() local
1626 static int btree_node_read_all_replicas(struct bch_fs *c, struct btree *b, bool sync) in btree_node_read_all_replicas()
1694 void bch2_btree_node_read(struct btree_trans *trans, struct btree *b, in bch2_btree_node_read()
1779 struct btree *b; in __bch2_btree_root_read() local
1915 struct btree *b; in btree_node_scrub_work() local
2011 static void bch2_btree_complete_write(struct bch_fs *c, struct btree *b, in bch2_btree_complete_write()
2031 static void __btree_node_write_done(struct bch_fs *c, struct btree *b, u64 start_time) in __btree_node_write_done()
2074 static void btree_node_write_done(struct bch_fs *c, struct btree *b, u64 start_time) in btree_node_write_done()
2091 struct btree *b = wbio->wbio.bio.bi_private; in btree_node_write_work() local
2147 struct btree *b = wbio->bio.bi_private; in btree_node_write_endio() local
2190 static int validate_bset_for_write(struct bch_fs *c, struct btree *b, in validate_bset_for_write()
2231 void __bch2_btree_node_write(struct bch_fs *c, struct btree *b, unsigned flags) in __bch2_btree_node_write()
2489 bool bch2_btree_post_write_cleanup(struct bch_fs *c, struct btree *b) in bch2_btree_post_write_cleanup()
2544 void bch2_btree_node_write(struct bch_fs *c, struct btree *b, in bch2_btree_node_write()
2570 void bch2_btree_node_write_trans(struct btree_trans *trans, struct btree *b, in bch2_btree_node_write_trans()
2602 struct btree *b; in __bch2_btree_flush_all() local