Motr  M0
fl.c File Reference
#include "lib/trace.h"
#include "be/fl.h"
#include "lib/assert.h"
#include "lib/misc.h"
#include "lib/arith.h"
#include "motr/magic.h"
#include "be/tx_credit.h"
#include "be/alloc_internal.h"
Include dependency graph for fl.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE
 

Functions

 M0_BE_LIST_DESCR_DEFINE (fl, "m0_be_fl", static, struct be_alloc_chunk, bac_linkage_free, bac_magic_free, M0_BE_ALLOC_FREE_LINK_MAGIC, M0_BE_ALLOC_FREE_MAGIC)
 
 M0_BE_LIST_DEFINE (fl, static, struct be_alloc_chunk)
 
static struct m0_be_listbe_fl_list (struct m0_be_fl *fl, unsigned long index)
 
static bool be_fl_list_is_empty (struct m0_be_fl *fl, unsigned long index)
 
M0_INTERNAL void m0_be_fl_create (struct m0_be_fl *fl, struct m0_be_tx *tx, struct m0_be_seg *seg)
 
M0_INTERNAL void m0_be_fl_destroy (struct m0_be_fl *fl, struct m0_be_tx *tx)
 
static unsigned long be_fl_index_round_up (struct m0_be_fl *fl, m0_bcount_t size)
 
static unsigned long be_fl_index_round_down_chunk (struct m0_be_fl *fl, const struct be_alloc_chunk *chunk)
 
M0_INTERNAL bool m0_be_fl__invariant (struct m0_be_fl *fl)
 
M0_INTERNAL void m0_be_fl_add (struct m0_be_fl *fl, struct m0_be_tx *tx, struct be_alloc_chunk *chunk)
 
M0_INTERNAL void m0_be_fl_del (struct m0_be_fl *fl, struct m0_be_tx *tx, struct be_alloc_chunk *chunk)
 
M0_INTERNAL struct be_alloc_chunkm0_be_fl_pick (struct m0_be_fl *fl, m0_bcount_t size)
 
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)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE

Definition at line 22 of file fl.c.