Lines Matching refs:nr_paths
1596 size_t nr = bitmap_weight(trans->paths_allocated, trans->nr_paths); in bch2_trans_update_max_paths()
1638 unsigned nr = trans->nr_paths * 2; in btree_paths_realloc()
1647 …memcpy(paths_allocated, trans->paths_allocated, BITS_TO_LONGS(trans->nr_paths) * sizeof(unsigned l… in btree_paths_realloc()
1653 memcpy(paths, trans->paths, trans->nr_paths * sizeof(struct btree_path)); in btree_paths_realloc()
1661 memcpy(updates, trans->updates, trans->nr_paths * sizeof(struct btree_insert_entry)); in btree_paths_realloc()
1670 trans->nr_paths = nr; in btree_paths_realloc()
1679 btree_path_idx_t idx = find_first_zero_bit(trans->paths_allocated, trans->nr_paths); in btree_path_alloc()
1681 if (unlikely(idx == trans->nr_paths)) { in btree_path_alloc()
1682 if (trans->nr_paths == BTREE_ITER_MAX) { in btree_path_alloc()
2763 BUG_ON(trans->nr_sorted != bitmap_weight(trans->paths_allocated, trans->nr_paths) - 1); in btree_trans_verify_sorted_refs()
3198 trans->nr_paths = ARRAY_SIZE(trans->_paths); in __bch2_trans_get()