diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-05-07 04:46:49 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-05-18 05:28:24 -0400 |
commit | f089c0b28cdba1076aa8335dcaaaacc3dafc7d36 (patch) | |
tree | ae9ca55c15a379d20856c56c1ff30ad712c4839e /drivers/mtd/ubi/upd.c | |
parent | 383d08e045faddd89797959786233d4c0e1ace80 (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/upd.c')
-rw-r--r-- | drivers/mtd/ubi/upd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/upd.c b/drivers/mtd/ubi/upd.c index 6b4d1ae891ae..dce1d92d8e9d 100644 --- a/drivers/mtd/ubi/upd.c +++ b/drivers/mtd/ubi/upd.c | |||
@@ -68,9 +68,9 @@ static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) | |||
68 | sizeof(struct ubi_vtbl_record)); | 68 | sizeof(struct ubi_vtbl_record)); |
69 | vtbl_rec.upd_marker = 1; | 69 | vtbl_rec.upd_marker = 1; |
70 | 70 | ||
71 | mutex_lock(&ubi->volumes_mutex); | 71 | mutex_lock(&ubi->device_mutex); |
72 | err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); | 72 | err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); |
73 | mutex_unlock(&ubi->volumes_mutex); | 73 | mutex_unlock(&ubi->device_mutex); |
74 | vol->upd_marker = 1; | 74 | vol->upd_marker = 1; |
75 | return err; | 75 | return err; |
76 | } | 76 | } |
@@ -109,9 +109,9 @@ static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, | |||
109 | vol->last_eb_bytes = vol->usable_leb_size; | 109 | vol->last_eb_bytes = vol->usable_leb_size; |
110 | } | 110 | } |
111 | 111 | ||
112 | mutex_lock(&ubi->volumes_mutex); | 112 | mutex_lock(&ubi->device_mutex); |
113 | err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); | 113 | err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); |
114 | mutex_unlock(&ubi->volumes_mutex); | 114 | mutex_unlock(&ubi->device_mutex); |
115 | vol->upd_marker = 0; | 115 | vol->upd_marker = 0; |
116 | return err; | 116 | return err; |
117 | } | 117 | } |