- YAFFS_BLOCK_STATE_NEEDS_SCANNING,// The block might have something on it (ie it is allocating or full, perhaps empty)
- // but it needs to be scanned to determine its true state.
- // This state is only valid during yaffs_Scan.
- // NB We tolerate empty because the pre-scanner might be incapable of deciding
- // However, if this state is returned on a YAFFS2 device, then we expect a sequence number
-
- YAFFS_BLOCK_STATE_EMPTY, // This block is empty
-
- YAFFS_BLOCK_STATE_ALLOCATING, // This block is partially allocated.
- // This is the one currently being used for page
- // allocation. Should never be more than one of these
-
-
- YAFFS_BLOCK_STATE_FULL, // All the pages in this block have been allocated.
- // At least one page holds valid data.
-
- YAFFS_BLOCK_STATE_DIRTY, // All pages have been allocated and deleted.
- // Erase me, reuse me.
-
- YAFFS_BLOCK_STATE_COLLECTING, // This block is being garbage collected
-
- YAFFS_BLOCK_STATE_DEAD // This block has failed and is not in use
-
+ /* Being scanned */
+
+ YAFFS_BLOCK_STATE_NEEDS_SCANNING,
+ /* The block might have something on it (ie it is allocating or full, perhaps empty)
+ * but it needs to be scanned to determine its true state.
+ * This state is only valid during yaffs_Scan.
+ * NB We tolerate empty because the pre-scanner might be incapable of deciding
+ * However, if this state is returned on a YAFFS2 device, then we expect a sequence number
+ */
+
+ YAFFS_BLOCK_STATE_EMPTY,
+ /* This block is empty */
+
+ YAFFS_BLOCK_STATE_ALLOCATING,
+ /* This block is partially allocated.
+ * At least one page holds valid data.
+ * This is the one currently being used for page
+ * allocation. Should never be more than one of these.
+ * If a block is only partially allocated at mount it is treated as full.
+ */
+
+ YAFFS_BLOCK_STATE_FULL,
+ /* All the pages in this block have been allocated.
+ * If a block was only partially allocated when mounted we treat
+ * it as fully allocated.
+ */
+
+ YAFFS_BLOCK_STATE_DIRTY,
+ /* The block was full and now all chunks have been deleted.
+ * Erase me, reuse me.
+ */
+
+ YAFFS_BLOCK_STATE_CHECKPOINT,
+ /* This block is assigned to holding checkpoint data. */
+
+ YAFFS_BLOCK_STATE_COLLECTING,
+ /* This block is being garbage collected */
+
+ YAFFS_BLOCK_STATE_DEAD
+ /* This block has failed and is not in use */