aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/eba.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/eba.c')
-rw-r--r--drivers/mtd/ubi/eba.c22
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
1215out_free: 1215out_free: