|
| M0_BASSERT (sizeof(struct generic_key)==M0_CAS_CTG_KEY_HDR_SIZE) |
|
| M0_BASSERT (sizeof(struct generic_value)==M0_CAS_CTG_VAL_HDR_SIZE) |
|
| M0_BASSERT (sizeof(struct m0_crv)==8) |
|
| M0_BASSERT (sizeof(struct generic_key)+sizeof(struct m0_fid)==sizeof(struct fid_key)) |
|
| M0_BASSERT (sizeof(struct generic_value)+sizeof(struct m0_cas_ctg *)==sizeof(struct meta_value)) |
|
| M0_BASSERT (sizeof(struct generic_value)+sizeof(struct m0_dix_layout)==sizeof(struct layout_value)) |
|
static struct m0_be_seg * | cas_seg (struct m0_be_domain *dom) |
|
static bool | ctg_op_is_versioned (const struct m0_ctg_op *op) |
|
static int | ctg_berc (struct m0_ctg_op *ctg_op) |
|
static int | ctg_vbuf_unpack (struct m0_buf *buf, struct m0_crv *crv) |
|
static int | ctg_vbuf_as_ctg (const struct m0_buf *val, struct m0_cas_ctg **ctg) |
|
static int | ctg_kbuf_unpack (struct m0_buf *buf) |
|
static int | ctg_kbuf_get (struct m0_buf *dst, const struct m0_buf *src, bool enabled_fi) |
|
static void | ctg_init (struct m0_cas_ctg *ctg, struct m0_be_seg *seg) |
|
static void | ctg_fini (struct m0_cas_ctg *ctg) |
|
static void | ctg_destroy (struct m0_cas_ctg *ctg, struct m0_be_tx *tx) |
|
static int | ctg_meta_selfadd (struct m0_be_btree *meta, struct m0_be_tx *tx) |
|
static void | ctg_meta_delete (struct m0_be_btree *meta, const struct m0_fid *fid, struct m0_be_tx *tx) |
|
static void | ctg_meta_selfrm (struct m0_be_btree *meta, struct m0_be_tx *tx) |
|
static void | ctg_meta_insert_credit (struct m0_be_btree *bt, m0_bcount_t nr, struct m0_be_tx_credit *accum) |
|
static void | ctg_meta_delete_credit (struct m0_be_btree *bt, m0_bcount_t nr, struct m0_be_tx_credit *accum) |
|
static void | ctg_store_init_creds_calc (struct m0_be_seg *seg, struct m0_cas_state *state, struct m0_cas_ctg *ctidx, struct m0_be_tx_credit *cred) |
|
static int | ctg_op_tick_ret (struct m0_ctg_op *ctg_op, int next_state) |
|
static int | ctg_op_exec (struct m0_ctg_op *ctg_op, int next_phase) |
|
static int | ctg_meta_exec (struct m0_ctg_op *ctg_op, const struct m0_fid *fid, int next_phase) |
|
static int | ctg_exec (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, const struct m0_buf *key, int next_phase) |
|
static void | ctg_store_release (struct m0_ref *ref) |
|
static m0_bcount_t | ctg_ksize (const void *key) |
|
static m0_bcount_t | ctg_vsize (const void *val) |
|
static int | ctg_cmp (const void *key0, const void *key1) |
|
static int | versioned_put_sync (struct m0_ctg_op *ctg_op) |
|
static int | versioned_get_sync (struct m0_ctg_op *op) |
|
static int | versioned_cursor_next_sync (struct m0_ctg_op *op, bool alive_only) |
|
static int | versioned_cursor_get_sync (struct m0_ctg_op *op, bool alive_only) |
|
static struct m0_be_op * | ctg_beop (struct m0_ctg_op *ctg_op) |
|
static m0_bcount_t | ctg_vbuf_packed_size (const struct m0_buf *value) |
|
static void | ctg_vbuf_pack (struct m0_buf *dst, const struct m0_buf *src, const struct m0_crv *crv) |
|
static int | ctg_vbuf_as_layout (const struct m0_buf *buf, struct m0_dix_layout **layout) |
|
int | m0_ctg_create (struct m0_be_seg *seg, struct m0_be_tx *tx, struct m0_cas_ctg **out, const struct m0_fid *cas_fid) |
|
M0_INTERNAL void | m0_ctg_fini (struct m0_fom *fom, struct m0_cas_ctg *ctg) |
|
M0_INTERNAL int | m0_ctg_meta_find_ctg (struct m0_cas_ctg *meta, const struct m0_fid *ctg_fid, struct m0_cas_ctg **ctg) |
|
M0_INTERNAL int | m0_ctg__meta_insert (struct m0_be_btree *meta, const struct m0_fid *fid, struct m0_cas_ctg *ctg, struct m0_be_tx *tx) |
|
static int | ctg_state_create (struct m0_be_seg *seg, struct m0_be_tx *tx, struct m0_cas_state **state) |
|
static void | ctg_state_destroy (struct m0_cas_state *state, struct m0_be_tx *tx) |
|
static int | ctg_store__init (struct m0_be_seg *seg, struct m0_cas_state *state) |
|
static int | ctg_store_create (struct m0_be_seg *seg) |
|
M0_INTERNAL int | m0_ctg_store_init (struct m0_be_domain *dom) |
|
M0_INTERNAL void | m0_ctg_store_fini (void) |
|
static void | ctg_state_counter_add (uint64_t *counter, uint64_t val) |
|
static void | ctg_state_counter_sub (uint64_t *counter, uint64_t val) |
|
static uint64_t | ctg_state_update (struct m0_be_tx *tx, uint64_t size, bool is_inc) |
|
M0_INTERNAL void | m0_ctg_state_inc_update (struct m0_be_tx *tx, uint64_t size) |
|
static void | ctg_state_dec_update (struct m0_be_tx *tx, uint64_t size) |
|
M0_INTERNAL void | m0_ctg_try_init (struct m0_cas_ctg *ctg) |
|
static bool | ctg_is_ordinary (const struct m0_cas_ctg *ctg) |
|
static bool | ctg_op_cb (struct m0_clink *clink) |
|
static uint32_t | ctg_op_zones (const struct m0_ctg_op *ctg_op) |
|
static int | ctg_op_exec_normal (struct m0_ctg_op *ctg_op, int next_phase) |
|
static int | ctg_op_exec_versioned (struct m0_ctg_op *ctg_op, int next_phase) |
|
static int | ctg_mem_op_exec (struct m0_ctg_op *ctg_op, int next_phase) |
|
M0_INTERNAL int | m0_ctg_meta_insert (struct m0_ctg_op *ctg_op, const struct m0_fid *fid, int next_phase) |
|
M0_INTERNAL int | m0_ctg_gc_wait (struct m0_ctg_op *ctg_op, int next_phase) |
|
M0_INTERNAL int | m0_ctg_meta_lookup (struct m0_ctg_op *ctg_op, const struct m0_fid *fid, int next_phase) |
|
M0_INTERNAL struct m0_cas_ctg * | m0_ctg_meta_lookup_result (struct m0_ctg_op *ctg_op) |
|
M0_INTERNAL int | m0_ctg_meta_delete (struct m0_ctg_op *ctg_op, const struct m0_fid *fid, int next_phase) |
|
M0_INTERNAL int | m0_ctg_dead_index_insert (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, int next_phase) |
|
static int | ctg_mem_exec (struct m0_ctg_op *ctg_op, int next_phase) |
|
M0_INTERNAL int | m0_ctg_insert (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, const struct m0_buf *key, const struct m0_buf *val, int next_phase) |
|
M0_INTERNAL int | m0_ctg_lookup_delete (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, const struct m0_buf *key, struct m0_buf *val, int flags, int next_phase) |
|
M0_INTERNAL int | m0_ctg_delete (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, const struct m0_buf *key, int next_phase) |
|
M0_INTERNAL int | m0_ctg_lookup (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, const struct m0_buf *key, int next_phase) |
|
M0_INTERNAL void | m0_ctg_lookup_result (struct m0_ctg_op *ctg_op, struct m0_buf *buf) |
|
M0_INTERNAL void | m0_ctg_op_get_ver (struct m0_ctg_op *ctg_op, struct m0_crv *out) |
|
M0_INTERNAL int | m0_ctg_minkey (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, int next_phase) |
|
M0_INTERNAL int | m0_ctg_truncate (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, m0_bcount_t limit, int next_phase) |
|
M0_INTERNAL int | m0_ctg_drop (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg, int next_phase) |
|
M0_INTERNAL bool | m0_ctg_cursor_is_initialised (struct m0_ctg_op *ctg_op) |
|
M0_INTERNAL void | m0_ctg_cursor_init (struct m0_ctg_op *ctg_op, struct m0_cas_ctg *ctg) |
|
M0_INTERNAL int | m0_ctg_cursor_get (struct m0_ctg_op *ctg_op, const struct m0_buf *key, int next_phase) |
|
M0_INTERNAL int | m0_ctg_cursor_next (struct m0_ctg_op *ctg_op, int next_phase) |
|
M0_INTERNAL int | m0_ctg_meta_cursor_next (struct m0_ctg_op *ctg_op, int next_phase) |
|
M0_INTERNAL void | m0_ctg_cursor_kv_get (struct m0_ctg_op *ctg_op, struct m0_buf *key, struct m0_buf *val) |
|
M0_INTERNAL void | m0_ctg_meta_cursor_init (struct m0_ctg_op *ctg_op) |
|
M0_INTERNAL int | m0_ctg_meta_cursor_get (struct m0_ctg_op *ctg_op, const struct m0_fid *fid, int next_phase) |
|
M0_INTERNAL void | m0_ctg_cursor_put (struct m0_ctg_op *ctg_op) |
|
M0_INTERNAL void | m0_ctg_cursor_fini (struct m0_ctg_op *ctg_op) |
|
M0_INTERNAL void | m0_ctg_op_init (struct m0_ctg_op *ctg_op, struct m0_fom *fom, uint32_t flags) |
|
M0_INTERNAL int | m0_ctg_op_rc (struct m0_ctg_op *ctg_op) |
|
M0_INTERNAL void | m0_ctg_op_fini (struct m0_ctg_op *ctg_op) |
|
M0_INTERNAL void | m0_ctg_mark_deleted_credit (struct m0_be_tx_credit *accum) |
|
M0_INTERNAL void | m0_ctg_create_credit (struct m0_be_tx_credit *accum) |
|
M0_INTERNAL void | m0_ctg_drop_credit (struct m0_fom *fom, struct m0_be_tx_credit *accum, struct m0_cas_ctg *ctg, m0_bcount_t *limit) |
|
M0_INTERNAL void | m0_ctg_dead_clean_credit (struct m0_be_tx_credit *accum) |
|
M0_INTERNAL void | m0_ctg_insert_credit (struct m0_cas_ctg *ctg, m0_bcount_t knob, m0_bcount_t vnob, struct m0_be_tx_credit *accum) |
|
M0_INTERNAL void | m0_ctg_delete_credit (struct m0_cas_ctg *ctg, m0_bcount_t knob, m0_bcount_t vnob, struct m0_be_tx_credit *accum) |
|
static void | ctg_ctidx_op_credits (struct m0_cas_id *cid, bool insert, struct m0_be_tx_credit *accum) |
|
M0_INTERNAL void | m0_ctg_ctidx_insert_credits (struct m0_cas_id *cid, struct m0_be_tx_credit *accum) |
|
M0_INTERNAL void | m0_ctg_ctidx_delete_credits (struct m0_cas_id *cid, struct m0_be_tx_credit *accum) |
|
M0_INTERNAL int | m0_ctg_ctidx_lookup_sync (const struct m0_fid *fid, struct m0_dix_layout **layout) |
|
M0_INTERNAL int | m0_ctg_ctidx_insert_sync (const struct m0_cas_id *cid, struct m0_be_tx *tx) |
|
M0_INTERNAL int | m0_ctg_ctidx_delete_sync (const struct m0_cas_id *cid, struct m0_be_tx *tx) |
|
M0_INTERNAL int | m0_ctg_mem_place (struct m0_ctg_op *ctg_op, const struct m0_buf *buf, int next_phase) |
|
M0_INTERNAL void | m0_ctg_mem_place_get (struct m0_ctg_op *ctg_op, struct m0_buf *buf) |
|
M0_INTERNAL int | m0_ctg_mem_free (struct m0_ctg_op *ctg_op, void *area, int next_phase) |
|
M0_INTERNAL struct m0_cas_ctg * | m0_ctg_meta (void) |
|
M0_INTERNAL struct m0_cas_ctg * | m0_ctg_ctidx (void) |
|
M0_INTERNAL struct m0_cas_ctg * | m0_ctg_dead_index (void) |
|
M0_INTERNAL uint64_t | m0_ctg_rec_nr (void) |
|
M0_INTERNAL uint64_t | m0_ctg_rec_size (void) |
|
M0_INTERNAL struct m0_long_lock * | m0_ctg_del_lock (void) |
|
M0_INTERNAL struct m0_long_lock * | m0_ctg_lock (struct m0_cas_ctg *ctg) |
|
M0_INTERNAL const struct m0_be_btree_kv_ops * | m0_ctg_btree_ops (void) |
|
M0_INTERNAL void | ctg_index_btree_dump_one_rec (struct m0_buf *key, struct m0_buf *val, bool dump_in_hex) |
|
M0_INTERNAL int | ctg_index_btree_dump (struct m0_motr *motr_ctx, struct m0_cas_ctg *ctg, bool dump_in_hex) |
|
int | ctgdump (struct m0_motr *motr_ctx, char *fidstr, char *dump_in_hex_str) |
|
static void | ctg_op_version_get (const struct m0_ctg_op *ctg_op, struct m0_crv *out) |
|