Motr  M0
trigger_fom.c File Reference
#include "lib/trace.h"
#include "lib/errno.h"
#include "lib/assert.h"
#include "lib/memory.h"
#include "fop/fop.h"
#include "fop/fom.h"
#include "fop/fom_generic.h"
#include "cm/cm.h"
#include "cm/repreb/trigger_fom.h"
#include "cm/repreb/trigger_fop.h"
#include "sns/cm/trigger_fop.h"
#include "sns/cm/cm.h"
#include "sns/cm/repair/ag.h"
Include dependency graph for trigger_fom.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SNSCM
 

Functions

static int sns_trigger_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
 
static struct m0_fop_typesns_fop_type (uint32_t op)
 
static uint64_t sns_progress (struct m0_fom *fom, bool reinit_counter)
 
static void sns_prepare (struct m0_fom *fom)
 
static void print__ag (const struct m0_tl_descr *descr, const struct m0_tl *head)
 
static void print_ag (struct m0_cm *cm)
 

Variables

static const struct m0_fom_trigger_ops sns_trigger_ops
 
const struct m0_fom_type_ops m0_sns_trigger_fom_type_ops
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SNSCM

Definition at line 23 of file trigger_fom.c.

Function Documentation

◆ print__ag()

static void print__ag ( const struct m0_tl_descr descr,
const struct m0_tl head 
)
static

Definition at line 107 of file trigger_fom.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_ag()

static void print_ag ( struct m0_cm cm)
static

Definition at line 119 of file trigger_fom.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sns_fop_type()

static struct m0_fop_type * sns_fop_type ( uint32_t  op)
static

Definition at line 83 of file trigger_fom.c.

Here is the caller graph for this function:

◆ sns_prepare()

static void sns_prepare ( struct m0_fom fom)
static

Definition at line 140 of file trigger_fom.c.

Here is the call graph for this function:

◆ sns_progress()

static uint64_t sns_progress ( struct m0_fom fom,
bool  reinit_counter 
)
static

Definition at line 125 of file trigger_fom.c.

Here is the call graph for this function:

◆ sns_trigger_fom_create()

static int sns_trigger_fom_create ( struct m0_fop fop,
struct m0_fom **  out,
struct m0_reqh reqh 
)
static

Definition at line 64 of file trigger_fom.c.

Here is the call graph for this function:

Variable Documentation

◆ m0_sns_trigger_fom_type_ops

const struct m0_fom_type_ops m0_sns_trigger_fom_type_ops
Initial value:
= {
.fto_create = sns_trigger_fom_create,
}
static int sns_trigger_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
Definition: trigger_fom.c:64

Definition at line 60 of file trigger_fom.c.

◆ sns_trigger_ops

const struct m0_fom_trigger_ops sns_trigger_ops
static
Initial value:
= {
.fto_type = sns_fop_type,
.fto_progress = sns_progress,
.fto_prepare = sns_prepare
}
static struct m0_fop_type * sns_fop_type(uint32_t op)
Definition: trigger_fom.c:83
static void sns_prepare(struct m0_fom *fom)
Definition: trigger_fom.c:140
static uint64_t sns_progress(struct m0_fom *fom, bool reinit_counter)
Definition: trigger_fom.c:125

Definition at line 54 of file trigger_fom.c.