Motr  M0
update.c File Reference
#include "lib/trace.h"
#include "lib/assert.h"
#include "lib/errno.h"
#include "lib/misc.h"
#include "motr/magic.h"
#include "fop/fop.h"
#include "dtm/dtm_internal.h"
#include "dtm/nucleus.h"
#include "dtm/operation.h"
#include "dtm/history.h"
#include "dtm/remote.h"
#include "dtm/update.h"
Include dependency graph for update.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DTM
 

Functions

M0_INTERNAL void m0_dtm_update_init (struct m0_dtm_update *update, struct m0_dtm_history *history, struct m0_dtm_oper *oper, const struct m0_dtm_update_data *data)
 
M0_INTERNAL bool m0_dtm_update_invariant (const struct m0_dtm_update *update)
 
M0_INTERNAL bool m0_dtm_update_is_user (const struct m0_dtm_update *update)
 
M0_INTERNAL void m0_dtm_update_pack (const struct m0_dtm_update *update, struct m0_dtm_update_descr *updd)
 
M0_INTERNAL void m0_dtm_update_unpack (struct m0_dtm_update *update, const struct m0_dtm_update_descr *updd)
 
M0_INTERNAL int m0_dtm_update_build (struct m0_dtm_update *update, struct m0_dtm_oper *oper, const struct m0_dtm_update_descr *updd)
 
M0_INTERNAL bool m0_dtm_update_matches_descr (const struct m0_dtm_update *update, const struct m0_dtm_update_descr *updd)
 
M0_INTERNAL bool m0_dtm_descr_matches_update (const struct m0_dtm_update *update, const struct m0_dtm_update_descr *updd)
 
M0_INTERNAL void m0_dtm_update_list_init (struct m0_tl *list)
 
M0_INTERNAL void m0_dtm_update_list_fini (struct m0_tl *list)
 
M0_INTERNAL void m0_dtm_update_reint (struct m0_dtm_update *update)
 
M0_INTERNAL void m0_dtm_comm_set (struct m0_dtm_update *update, struct m0_fop *fop)
 
M0_INTERNAL void m0_dtm_update_link (struct m0_tl *list, struct m0_dtm_update *update, uint32_t nr)
 
M0_INTERNAL struct m0_dtm_updateup_update (struct m0_dtm_up *up)
 
M0_INTERNAL bool update_is_earlier (struct m0_dtm_update *update0, struct m0_dtm_update *update1)
 
M0_INTERNAL void update_reint (struct m0_dtm_update *update)
 
static void dtm_update_replied (struct m0_rpc_item *item)
 
 M0_TL_DESCR_DEFINE (history, "dtm history updates", M0_INTERNAL, struct m0_dtm_update, upd_up.up_hi_linkage, upd_up.up_magix, M0_DTM_UP_MAGIX, M0_DTM_HI_MAGIX)
 
 M0_TL_DEFINE (history, M0_INTERNAL, struct m0_dtm_update)
 
 M0_TL_DESCR_DEFINE (oper, "dtm operation updates", M0_INTERNAL, struct m0_dtm_update, upd_up.up_op_linkage, upd_up.up_magix, M0_DTM_UP_MAGIX, M0_DTM_OP_MAGIX)
 
 M0_TL_DEFINE (oper, M0_INTERNAL, struct m0_dtm_update)
 
M0_INTERNAL void update_print_internal (const struct m0_dtm_update *update, bool history)
 
M0_INTERNAL void update_print (const struct m0_dtm_update *update)
 

Variables

static const struct m0_rpc_item_ops dtm_update_item_ops