aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/vmt.c
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/vmt.c
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/vmt.c')
-rw-r--r--drivers/mtd/ubi/vmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c
index df5483562b7a..328c1242920e 100644
--- a/drivers/mtd/ubi/vmt.c
+++ b/drivers/mtd/ubi/vmt.c
@@ -198,7 +198,7 @@ static void volume_sysfs_close(struct ubi_volume *vol)
198 * %UBI_VOL_NUM_AUTO, this function automatically assign ID to the new volume 198 * %UBI_VOL_NUM_AUTO, this function automatically assign ID to the new volume
199 * and saves it in @req->vol_id. Returns zero in case of success and a negative 199 * and saves it in @req->vol_id. Returns zero in case of success and a negative
200 * error code in case of failure. Note, the caller has to have the 200 * error code in case of failure. Note, the caller has to have the
201 * @ubi->volumes_mutex locked. 201 * @ubi->device_mutex locked.
202 */ 202 */
203int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) 203int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req)
204{ 204{
@@ -403,7 +403,7 @@ out_unlock:
403 * 403 *
404 * This function removes volume described by @desc. The volume has to be opened 404 * This function removes volume described by @desc. The volume has to be opened
405 * in "exclusive" mode. Returns zero in case of success and a negative error 405 * in "exclusive" mode. Returns zero in case of success and a negative error
406 * code in case of failure. The caller has to have the @ubi->volumes_mutex 406 * code in case of failure. The caller has to have the @ubi->device_mutex
407 * locked. 407 * locked.
408 */ 408 */
409int ubi_remove_volume(struct ubi_volume_desc *desc, int no_vtbl) 409int ubi_remove_volume(struct ubi_volume_desc *desc, int no_vtbl)
@@ -485,7 +485,7 @@ out_unlock:
485 * 485 *
486 * This function re-sizes the volume and returns zero in case of success, and a 486 * This function re-sizes the volume and returns zero in case of success, and a
487 * negative error code in case of failure. The caller has to have the 487 * negative error code in case of failure. The caller has to have the
488 * @ubi->volumes_mutex locked. 488 * @ubi->device_mutex locked.
489 */ 489 */
490int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs) 490int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs)
491{ 491{