aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/ubi.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-17 05:46:48 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-26 12:15:15 -0500
commitcae0a77125467c42f0918e78457913ee4a2f925b (patch)
tree92ce552bb67d6e0d44e1144e08260ea0bbcee80a /drivers/mtd/ubi/ubi.h
parent89b96b69290668351a33b09372ec1c94cb5748e5 (diff)
UBI: tweak volumes locking
Transform vtbl_mutex to volumes_mutex - this just makes code easier to understand. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r--drivers/mtd/ubi/ubi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 0a3a803dd22f..69cbee3be7a4 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -255,7 +255,8 @@ struct ubi_wl_entry;
255 * @vtbl_slots: how many slots are available in the volume table 255 * @vtbl_slots: how many slots are available in the volume table
256 * @vtbl_size: size of the volume table in bytes 256 * @vtbl_size: size of the volume table in bytes
257 * @vtbl: in-RAM volume table copy 257 * @vtbl: in-RAM volume table copy
258 * @vtbl_mutex: protects on-flash volume table 258 * @volumes_mutex: protects on-flash volume table and serializes volume
259 * changes, like creation, deletion, update, resize
259 * 260 *
260 * @max_ec: current highest erase counter value 261 * @max_ec: current highest erase counter value
261 * @mean_ec: current mean erase counter value 262 * @mean_ec: current mean erase counter value
@@ -333,7 +334,7 @@ struct ubi_device {
333 int vtbl_slots; 334 int vtbl_slots;
334 int vtbl_size; 335 int vtbl_size;
335 struct ubi_vtbl_record *vtbl; 336 struct ubi_vtbl_record *vtbl;
336 struct mutex vtbl_mutex; 337 struct mutex volumes_mutex;
337 338
338 int max_ec; 339 int max_ec;
339 int mean_ec; 340 int mean_ec;