Motr  M0
plan.c File Reference
#include "lib/trace.h"
#include "lib/tlist.h"
#include "lib/hash.h"
#include "motr/client.h"
#include "motr/client_internal.h"
#include "motr/io.h"
#include "layout/layout.h"
#include "layout/plan.h"
Include dependency graph for plan.c:

Go to the source code of this file.

Data Structures

struct  m0_layout_plan
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LAYOUT
 

Functions

 M0_TL_DESCR_DEFINE (pplops, "plan plops", M0_INTERNAL, struct m0_layout_plop, pl_linkage, pl_magix, M0_LAYOUT_PLAN_PLOP_MAGIC, M0_LAYOUT_PPLOPS_HMAGIC)
 
 M0_TL_DEFINE (pplops, M0_INTERNAL, struct m0_layout_plop)
 
 M0_TL_DESCR_DEFINE (pldeps, "plop deps", M0_INTERNAL, struct m0_layout_plop_rel, plr_dep_linkage, plr_magix, M0_LAYOUT_PLAN_PLOPR_MAGIC, M0_LAYOUT_PPLD_HMAGIC)
 
 M0_TL_DEFINE (pldeps, M0_INTERNAL, struct m0_layout_plop_rel)
 
 M0_TL_DESCR_DEFINE (plrdeps, "plop rdeps", M0_INTERNAL, struct m0_layout_plop_rel, plr_rdep_linkage, plr_magix, M0_LAYOUT_PLAN_PLOPR_MAGIC, M0_LAYOUT_PPLRD_HMAGIC)
 
 M0_TL_DEFINE (plrdeps, M0_INTERNAL, struct m0_layout_plop_rel)
 
static struct m0_layout_plopplop_alloc_init (struct m0_layout_plan *plan, enum m0_layout_plop_type type, struct target_ioreq *ti)
 
static int add_plops_relation (struct m0_layout_plop *rdep, struct m0_layout_plop *dep)
 
static void del_plop_relations (struct m0_layout_plop *plop)
 
M0_INTERNAL struct m0_layout_planm0_layout_plan_build (struct m0_op *op)
 
M0_INTERNAL void m0_layout_plan_fini (struct m0_layout_plan *plan)
 
M0_INTERNAL int m0_layout_plan_get (struct m0_layout_plan *plan, uint64_t colour, struct m0_layout_plop **plop)
 
M0_INTERNAL int m0_layout_plop_start (struct m0_layout_plop *plop)
 
M0_INTERNAL void m0_layout_plop_done (struct m0_layout_plop *plop)