Motr  M0
dtm0_log.h File Reference
#include "be/list.h"
#include "dtm0/tx_desc.h"
#include "fid/fid.h"
#include "lib/buf.h"
#include "dtm0/dtx.h"
Include dependency graph for dtm0_log.h:

Go to the source code of this file.

Data Structures

struct  m0_dtm0_log_rec
 
struct  m0_be_dtm0_log
 

Macros

#define __MOTR_BE_DTM0_LOG_H__
 

Enumerations

enum  m0_be_dtm0_log_credit_op {
  M0_DTML_CREATE, M0_DTML_SENT, M0_DTML_EXECUTED, M0_DTML_PERSISTENT,
  M0_DTML_PRUNE, M0_DTML_REDO
}
 

Functions

M0_INTERNAL int m0_be_dtm0_log_alloc (struct m0_be_dtm0_log **log)
 
M0_INTERNAL int m0_be_dtm0_log_init (struct m0_be_dtm0_log *log, struct m0_be_seg *seg, struct m0_dtm0_clk_src *cs, bool is_plog)
 
M0_INTERNAL void m0_be_dtm0_log_fini (struct m0_be_dtm0_log *log)
 
M0_INTERNAL void m0_be_dtm0_log_free (struct m0_be_dtm0_log **log)
 
M0_INTERNAL void m0_be_dtm0_log_credit (enum m0_be_dtm0_log_credit_op op, struct m0_dtm0_tx_desc *txd, struct m0_buf *payload, struct m0_be_seg *seg, struct m0_dtm0_log_rec *rec, struct m0_be_tx_credit *accum)
 
M0_INTERNAL int m0_be_dtm0_log_create (struct m0_be_tx *tx, struct m0_be_seg *seg, struct m0_be_dtm0_log **out)
 
M0_INTERNAL void m0_be_dtm0_log_destroy (struct m0_be_tx *tx, struct m0_be_dtm0_log **log)
 
M0_INTERNAL int m0_be_dtm0_log_update (struct m0_be_dtm0_log *log, struct m0_be_tx *tx, struct m0_dtm0_tx_desc *txd, struct m0_buf *payload)
 
M0_INTERNAL struct m0_dtm0_log_recm0_be_dtm0_log_find (struct m0_be_dtm0_log *log, const struct m0_dtm0_tid *id)
 
M0_INTERNAL int m0_be_dtm0_log_prune (struct m0_be_dtm0_log *log, struct m0_be_tx *tx, const struct m0_dtm0_tid *id)
 
M0_INTERNAL bool m0_be_dtm0_plog_can_prune (struct m0_be_dtm0_log *log, const struct m0_dtm0_tid *id, struct m0_be_tx_credit *cred)
 
M0_INTERNAL int m0_be_dtm0_plog_prune (struct m0_be_dtm0_log *log, struct m0_be_tx *tx, const struct m0_dtm0_tid *id)
 
M0_INTERNAL void m0_be_dtm0_log_clear (struct m0_be_dtm0_log *log)
 
M0_INTERNAL int m0_be_dtm0_volatile_log_insert (struct m0_be_dtm0_log *log, struct m0_dtm0_log_rec *rec)
 
M0_INTERNAL void m0_be_dtm0_volatile_log_update (struct m0_be_dtm0_log *log, struct m0_dtm0_log_rec *rec)
 
M0_INTERNAL void m0_be_dtm0_log_pmsg_post (struct m0_be_dtm0_log *log, struct m0_fop *fop)
 

Macro Definition Documentation

◆ __MOTR_BE_DTM0_LOG_H__

#define __MOTR_BE_DTM0_LOG_H__

Definition at line 24 of file dtm0_log.h.