102 if (chunks_used[
index]) {
104 chunks_used[
index] =
false;
108 chunks_used[
index] =
true;
118 if (chunks_used[
i]) {
void m0_be_ut_seg_fini(struct m0_be_ut_seg *ut_seg)
#define M0_ALLOC_ARR(arr, nr)
M0_INTERNAL void m0_be_fl_destroy(struct m0_be_fl *fl, struct m0_be_tx *tx)
static m0_bcount_t be_ut_fl_rand_size(uint64_t *seed)
struct m0_be_seg * bus_seg
M0_INTERNAL void m0_be_tx_fini(struct m0_be_tx *tx)
M0_INTERNAL void m0_be_tx_prep(struct m0_be_tx *tx, const struct m0_be_tx_credit *credit)
struct m0_be_ut_seg ut_seg
void m0_be_ut_seg_init(struct m0_be_ut_seg *ut_seg, struct m0_be_ut_backend *ut_be, m0_bcount_t size)
M0_INTERNAL void m0_be_fl_create(struct m0_be_fl *fl, struct m0_be_tx *tx, struct m0_be_seg *seg)
#define M0_BE_TX_CREDIT(nr, size)
M0_INTERNAL m0_bcount_t m0_be_seg_reserved(const struct m0_be_seg *seg)
struct m0_be_ut_backend ut_be
M0_INTERNAL void m0_be_fl_credit(struct m0_be_fl *fl, enum m0_be_fl_op fl_op, struct m0_be_tx_credit *accum)
M0_INTERNAL void m0_be_tx_credit_mul(struct m0_be_tx_credit *c, m0_bcount_t k)
static long long max(long long a, long long b)
M0_INTERNAL int m0_be_tx_open_sync(struct m0_be_tx *tx)
void m0_be_ut_backend_init(struct m0_be_ut_backend *ut_be)
static struct m0_be_ut_backend be_ut_fl_backend
M0_INTERNAL uint64_t m0_rnd64(uint64_t *seed)
#define M0_BE_UT_TRANSACT(__ut_be, __tx, __cred, __credit_func, __action_func)
M0_INTERNAL void m0_be_fl_add(struct m0_be_fl *fl, struct m0_be_tx *tx, struct be_alloc_chunk *chunk)
void m0_be_ut_tx_init(struct m0_be_tx *tx, struct m0_be_ut_backend *ut_be)
void m0_be_ut_backend_fini(struct m0_be_ut_backend *ut_be)
static struct m0_be_seg * seg
#define M0_ASSERT_INFO(cond, fmt,...)
M0_INTERNAL void m0_be_fl_del(struct m0_be_fl *fl, struct m0_be_tx *tx, struct be_alloc_chunk *chunk)
static uint64_t be_ut_fl_rand(uint64_t max, uint64_t *seed)
M0_INTERNAL void m0_be_tx_close_sync(struct m0_be_tx *tx)