1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 #ifndef _RF__RF_PQ_H_
35 #define _RF__RF_PQ_H_
36
37 #include "rf_archs.h"
38
39 extern RF_RedFuncs_t rf_pFuncs;
40 extern RF_RedFuncs_t rf_pRecoveryFuncs;
41
42 int rf_RegularONPFunc(RF_DagNode_t *);
43 int rf_SimpleONPFunc(RF_DagNode_t *);
44 int rf_RecoveryPFunc(RF_DagNode_t *);
45 int rf_RegularPFunc(RF_DagNode_t *);
46
47 #if (RF_INCLUDE_DECL_PQ > 0) || (RF_INCLUDE_RAID6 > 0)
48
49 extern RF_RedFuncs_t rf_qFuncs;
50 extern RF_RedFuncs_t rf_qRecoveryFuncs;
51 extern RF_RedFuncs_t rf_pqRecoveryFuncs;
52
53 void rf_PQDagSelect(RF_Raid_t *, RF_IoType_t, RF_AccessStripeMap_t *,
54 RF_VoidFuncPtr *);
55 RF_CREATE_DAG_FUNC_DECL(rf_PQCreateLargeWriteDAG);
56 int rf_RegularONQFunc(RF_DagNode_t *);
57 int rf_SimpleONQFunc(RF_DagNode_t *);
58 RF_CREATE_DAG_FUNC_DECL(rf_PQCreateSmallWriteDAG);
59 int rf_RegularPQFunc(RF_DagNode_t *);
60 int rf_RegularQFunc(RF_DagNode_t *);
61 void rf_Degraded_100_PQFunc(RF_DagNode_t *);
62 int rf_RecoveryQFunc(RF_DagNode_t *);
63 int rf_RecoveryPQFunc(RF_DagNode_t *);
64 void rf_PQ_DegradedWriteQFunc(RF_DagNode_t *);
65 void rf_IncQ(unsigned long *, unsigned long *, unsigned, unsigned);
66 void rf_PQ_recover(unsigned long *, unsigned long *, unsigned long *,
67 unsigned long *, unsigned, unsigned, unsigned);
68
69 #endif
70
71 #endif