diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-07-16 03:25:56 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-07-24 06:32:56 -0400 |
commit | 85c6e6e28259e9b58b8984db536c45bc3161f40c (patch) | |
tree | f389adfe74753f318290b45b7ce190421d18c48e /drivers/mtd/ubi/eba.c | |
parent | bb84c1a199558962edf4b4aeb4480fb09aa09b91 (diff) |
UBI: amend commentaries
Hch asked not to use "unit" for sub-systems, let it be so.
Also some other commentaries modifications.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/eba.c')
-rw-r--r-- | drivers/mtd/ubi/eba.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c index 8dc488fc0cdf..613cd1e51648 100644 --- a/drivers/mtd/ubi/eba.c +++ b/drivers/mtd/ubi/eba.c | |||
@@ -19,20 +19,20 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /* | 21 | /* |
22 | * The UBI Eraseblock Association (EBA) unit. | 22 | * The UBI Eraseblock Association (EBA) sub-system. |
23 | * | 23 | * |
24 | * This unit is responsible for I/O to/from logical eraseblock. | 24 | * This sub-system is responsible for I/O to/from logical eraseblock. |
25 | * | 25 | * |
26 | * Although in this implementation the EBA table is fully kept and managed in | 26 | * Although in this implementation the EBA table is fully kept and managed in |
27 | * RAM, which assumes poor scalability, it might be (partially) maintained on | 27 | * RAM, which assumes poor scalability, it might be (partially) maintained on |
28 | * flash in future implementations. | 28 | * flash in future implementations. |
29 | * | 29 | * |
30 | * The EBA unit implements per-logical eraseblock locking. Before accessing a | 30 | * The EBA sub-system implements per-logical eraseblock locking. Before |
31 | * logical eraseblock it is locked for reading or writing. The per-logical | 31 | * accessing a logical eraseblock it is locked for reading or writing. The |
32 | * eraseblock locking is implemented by means of the lock tree. The lock tree | 32 | * per-logical eraseblock locking is implemented by means of the lock tree. The |
33 | * is an RB-tree which refers all the currently locked logical eraseblocks. The | 33 | * lock tree is an RB-tree which refers all the currently locked logical |
34 | * lock tree elements are &struct ubi_ltree_entry objects. They are indexed by | 34 | * eraseblocks. The lock tree elements are &struct ubi_ltree_entry objects. |
35 | * (@vol_id, @lnum) pairs. | 35 | * They are indexed by (@vol_id, @lnum) pairs. |
36 | * | 36 | * |
37 | * EBA also maintains the global sequence counter which is incremented each | 37 | * EBA also maintains the global sequence counter which is incremented each |
38 | * time a logical eraseblock is mapped to a physical eraseblock and it is | 38 | * time a logical eraseblock is mapped to a physical eraseblock and it is |
@@ -1128,7 +1128,7 @@ out_unlock_leb: | |||
1128 | } | 1128 | } |
1129 | 1129 | ||
1130 | /** | 1130 | /** |
1131 | * ubi_eba_init_scan - initialize the EBA unit using scanning information. | 1131 | * ubi_eba_init_scan - initialize the EBA sub-system using scanning information. |
1132 | * @ubi: UBI device description object | 1132 | * @ubi: UBI device description object |
1133 | * @si: scanning information | 1133 | * @si: scanning information |
1134 | * | 1134 | * |
@@ -1143,7 +1143,7 @@ int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_scan_info *si) | |||
1143 | struct ubi_scan_leb *seb; | 1143 | struct ubi_scan_leb *seb; |
1144 | struct rb_node *rb; | 1144 | struct rb_node *rb; |
1145 | 1145 | ||
1146 | dbg_eba("initialize EBA unit"); | 1146 | dbg_eba("initialize EBA sub-system"); |
1147 | 1147 | ||
1148 | spin_lock_init(&ubi->ltree_lock); | 1148 | spin_lock_init(&ubi->ltree_lock); |
1149 | mutex_init(&ubi->alc_mutex); | 1149 | mutex_init(&ubi->alc_mutex); |
@@ -1209,7 +1209,7 @@ int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_scan_info *si) | |||
1209 | ubi->rsvd_pebs += ubi->beb_rsvd_pebs; | 1209 | ubi->rsvd_pebs += ubi->beb_rsvd_pebs; |
1210 | } | 1210 | } |
1211 | 1211 | ||
1212 | dbg_eba("EBA unit is initialized"); | 1212 | dbg_eba("EBA sub-system is initialized"); |
1213 | return 0; | 1213 | return 0; |
1214 | 1214 | ||
1215 | out_free: | 1215 | out_free: |