提交 55e93e55 编写于 作者: A Artem Bityutskiy 提交者: Artem Bityutskiy

UBI: amend comments after renaming in scan.c

Now some commentaries are out-of-date, after we re-named the data
structures - amend them.
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
上级 afc15a81
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#define UBI_SCAN_UNKNOWN_EC (-1) #define UBI_SCAN_UNKNOWN_EC (-1)
/** /**
* struct ubi_ainf_peb - scanning information about a physical eraseblock. * struct ubi_ainf_peb - attach information about a physical eraseblock.
* @ec: erase counter (%UBI_SCAN_UNKNOWN_EC if it is unknown) * @ec: erase counter (%UBI_SCAN_UNKNOWN_EC if it is unknown)
* @pnum: physical eraseblock number * @pnum: physical eraseblock number
* @lnum: logical eraseblock number * @lnum: logical eraseblock number
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
* @u.rb: link in the per-volume RB-tree of &struct ubi_ainf_peb objects * @u.rb: link in the per-volume RB-tree of &struct ubi_ainf_peb objects
* @u.list: link in one of the eraseblock lists * @u.list: link in one of the eraseblock lists
* *
* One object of this type is allocated for each physical eraseblock during * One object of this type is allocated for each physical eraseblock when
* scanning. * attaching an MTD device.
*/ */
struct ubi_ainf_peb { struct ubi_ainf_peb {
int ec; int ec;
...@@ -53,7 +53,7 @@ struct ubi_ainf_peb { ...@@ -53,7 +53,7 @@ struct ubi_ainf_peb {
}; };
/** /**
* struct ubi_ainf_volume - scanning information about a volume. * struct ubi_ainf_volume - attaching information about a volume.
* @vol_id: volume ID * @vol_id: volume ID
* @highest_lnum: highest logical eraseblock number in this volume * @highest_lnum: highest logical eraseblock number in this volume
* @leb_count: number of logical eraseblocks in this volume * @leb_count: number of logical eraseblocks in this volume
...@@ -70,7 +70,8 @@ struct ubi_ainf_peb { ...@@ -70,7 +70,8 @@ struct ubi_ainf_peb {
* @root: root of the RB-tree containing all the eraseblock belonging to this * @root: root of the RB-tree containing all the eraseblock belonging to this
* volume (&struct ubi_ainf_peb objects) * volume (&struct ubi_ainf_peb objects)
* *
* One object of this type is allocated for each volume during scanning. * One object of this type is allocated for each volume when attaching an MTD
* device.
*/ */
struct ubi_ainf_volume { struct ubi_ainf_volume {
int vol_id; int vol_id;
...@@ -86,7 +87,7 @@ struct ubi_ainf_volume { ...@@ -86,7 +87,7 @@ struct ubi_ainf_volume {
}; };
/** /**
* struct ubi_attach_info - UBI scanning information. * struct ubi_attach_info - MTD device attaching information.
* @volumes: root of the volume RB-tree * @volumes: root of the volume RB-tree
* @corr: list of corrupted physical eraseblocks * @corr: list of corrupted physical eraseblocks
* @free: list of free physical eraseblocks * @free: list of free physical eraseblocks
...@@ -100,7 +101,7 @@ struct ubi_ainf_volume { ...@@ -100,7 +101,7 @@ struct ubi_ainf_volume {
* @bad_peb_count: count of bad physical eraseblocks * @bad_peb_count: count of bad physical eraseblocks
* @maybe_bad_peb_count: count of bad physical eraseblocks which are not marked * @maybe_bad_peb_count: count of bad physical eraseblocks which are not marked
* as bad yet, but which look like bad * as bad yet, but which look like bad
* @vols_found: number of volumes found during scanning * @vols_found: number of volumes found
* @highest_vol_id: highest volume ID * @highest_vol_id: highest volume ID
* @is_empty: flag indicating whether the MTD device is empty or not * @is_empty: flag indicating whether the MTD device is empty or not
* @min_ec: lowest erase counter value * @min_ec: lowest erase counter value
...@@ -111,9 +112,9 @@ struct ubi_ainf_volume { ...@@ -111,9 +112,9 @@ struct ubi_ainf_volume {
* @ec_count: a temporary variable used when calculating @mean_ec * @ec_count: a temporary variable used when calculating @mean_ec
* @scan_leb_slab: slab cache for &struct ubi_ainf_peb objects * @scan_leb_slab: slab cache for &struct ubi_ainf_peb objects
* *
* This data structure contains the result of scanning and may be used by other * This data structure contains the result of attaching an MTD device and may
* UBI sub-systems to build final UBI data structures, further error-recovery * be used by other UBI sub-systems to build final UBI data structures, further
* and so on. * error-recovery and so on.
*/ */
struct ubi_attach_info { struct ubi_attach_info {
struct rb_root volumes; struct rb_root volumes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册