lib/ftl: add comments to ftl_restore's fields
The structures in this module had no comments, so it was a bit hard to understand what they're used for. Change-Id: I439c8a792f02b929006c60933e6b272751b1a675 Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458102 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Mateusz Kozlowski <mateusz.kozlowski@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
0f0af48009
commit
773b7003bc
@ -44,33 +44,33 @@
|
|||||||
|
|
||||||
struct ftl_restore_band {
|
struct ftl_restore_band {
|
||||||
struct ftl_restore *parent;
|
struct ftl_restore *parent;
|
||||||
|
/* Associated band */
|
||||||
struct ftl_band *band;
|
struct ftl_band *band;
|
||||||
|
/* Status of retrieving this band's metadata */
|
||||||
enum ftl_md_status md_status;
|
enum ftl_md_status md_status;
|
||||||
|
/* Padded queue link */
|
||||||
STAILQ_ENTRY(ftl_restore_band) stailq;
|
STAILQ_ENTRY(ftl_restore_band) stailq;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ftl_restore {
|
struct ftl_restore {
|
||||||
struct spdk_ftl_dev *dev;
|
struct spdk_ftl_dev *dev;
|
||||||
|
/* Completion callback (called for each phase of the restoration) */
|
||||||
ftl_restore_fn cb;
|
ftl_restore_fn cb;
|
||||||
|
/* Number of inflight IOs */
|
||||||
unsigned int num_ios;
|
unsigned int num_ios;
|
||||||
|
/* Current band number (index in the below bands array) */
|
||||||
unsigned int current;
|
unsigned int current;
|
||||||
|
/* Array of bands */
|
||||||
struct ftl_restore_band *bands;
|
struct ftl_restore_band *bands;
|
||||||
|
/* Queue of bands to be padded (due to unsafe shutdown) */
|
||||||
STAILQ_HEAD(, ftl_restore_band) pad_bands;
|
STAILQ_HEAD(, ftl_restore_band) pad_bands;
|
||||||
|
/* Status of the padding */
|
||||||
int pad_status;
|
int pad_status;
|
||||||
|
/* Metadata buffer */
|
||||||
void *md_buf;
|
void *md_buf;
|
||||||
|
/* LBA map buffer */
|
||||||
void *lba_map;
|
void *lba_map;
|
||||||
|
/* Indicates we're in the final phase of the restoration */
|
||||||
bool l2p_phase;
|
bool l2p_phase;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user