From 773b7003bcdaee40bdc88a2f8becf4e393d29943 Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Mon, 3 Jun 2019 11:44:37 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458102 Reviewed-by: Ben Walker Reviewed-by: Mateusz Kozlowski Reviewed-by: Darek Stojaczyk Tested-by: SPDK CI Jenkins --- lib/ftl/ftl_restore.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/ftl/ftl_restore.c b/lib/ftl/ftl_restore.c index 73f957521..d176efa9f 100644 --- a/lib/ftl/ftl_restore.c +++ b/lib/ftl/ftl_restore.c @@ -44,33 +44,33 @@ struct ftl_restore_band { struct ftl_restore *parent; - + /* Associated band */ struct ftl_band *band; - + /* Status of retrieving this band's metadata */ enum ftl_md_status md_status; - + /* Padded queue link */ STAILQ_ENTRY(ftl_restore_band) stailq; }; struct ftl_restore { struct spdk_ftl_dev *dev; - + /* Completion callback (called for each phase of the restoration) */ ftl_restore_fn cb; - + /* Number of inflight IOs */ unsigned int num_ios; - + /* Current band number (index in the below bands array) */ unsigned int current; - + /* Array of bands */ struct ftl_restore_band *bands; - + /* Queue of bands to be padded (due to unsafe shutdown) */ STAILQ_HEAD(, ftl_restore_band) pad_bands; - + /* Status of the padding */ int pad_status; - + /* Metadata buffer */ void *md_buf; - + /* LBA map buffer */ void *lba_map; - + /* Indicates we're in the final phase of the restoration */ bool l2p_phase; };