aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/ubi.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-07 04:46:49 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-18 05:28:24 -0400
commitf089c0b28cdba1076aa8335dcaaaacc3dafc7d36 (patch)
treeae9ca55c15a379d20856c56c1ff30ad712c4839e /drivers/mtd/ubi/ubi.h
parent383d08e045faddd89797959786233d4c0e1ace80 (diff)
UBI: re-name volumes_mutex to device_mutex
The mutex essencially protects the entire UBI device, so the old @volumes_mutex name is a little misleading. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r--drivers/mtd/ubi/ubi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 485c73f850c1..76ec79b156a1 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -305,9 +305,9 @@ struct ubi_wl_entry;
305 * @vtbl_slots: how many slots are available in the volume table 305 * @vtbl_slots: how many slots are available in the volume table
306 * @vtbl_size: size of the volume table in bytes 306 * @vtbl_size: size of the volume table in bytes
307 * @vtbl: in-RAM volume table copy 307 * @vtbl: in-RAM volume table copy
308 * @volumes_mutex: protects on-flash volume table and serializes volume 308 * @device_mutex: protects on-flash volume table and serializes volume
309 * changes, like creation, deletion, update, re-size, 309 * creation, deletion, update, re-size, re-name and set
310 * re-name and set property 310 * property
311 * 311 *
312 * @max_ec: current highest erase counter value 312 * @max_ec: current highest erase counter value
313 * @mean_ec: current mean erase counter value 313 * @mean_ec: current mean erase counter value
@@ -388,7 +388,7 @@ struct ubi_device {
388 int vtbl_slots; 388 int vtbl_slots;
389 int vtbl_size; 389 int vtbl_size;
390 struct ubi_vtbl_record *vtbl; 390 struct ubi_vtbl_record *vtbl;
391 struct mutex volumes_mutex; 391 struct mutex device_mutex;
392 392
393 int max_ec; 393 int max_ec;
394 /* Note, mean_ec is not updated run-time - should be fixed */ 394 /* Note, mean_ec is not updated run-time - should be fixed */