diff options
author | Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> | 2012-05-17 06:09:08 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:26:02 -0400 |
commit | a4e6042f1d073073f88e0ad6d2a7450da9a3937d (patch) | |
tree | c9849fa560e49308275254ce65603c909566131b /drivers/mtd/ubi/wl.c | |
parent | 2c5ec5ce66c0170829c5c128b9235429936442ac (diff) |
UBI: rename si to ai
After re-naming the 'struct ubi_scan_info' we should adjust all variables
named 'si' to something else, because 'si' stands for "scanning info".
Let's rename it to 'ai' which stands for "attaching info" which is
a bit more consistent and has the same length, which makes re-naming easy.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/wl.c')
-rw-r--r-- | drivers/mtd/ubi/wl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index fb870f4fc924..992240dae1b1 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c | |||
@@ -1373,14 +1373,14 @@ static void cancel_pending(struct ubi_device *ubi) | |||
1373 | } | 1373 | } |
1374 | 1374 | ||
1375 | /** | 1375 | /** |
1376 | * ubi_wl_init_scan - initialize the WL sub-system using scanning information. | 1376 | * ubi_wl_init_scan - initialize the WL sub-system using attaching information. |
1377 | * @ubi: UBI device description object | 1377 | * @ubi: UBI device description object |
1378 | * @si: scanning information | 1378 | * @ai: attaching information |
1379 | * | 1379 | * |
1380 | * This function returns zero in case of success, and a negative error code in | 1380 | * This function returns zero in case of success, and a negative error code in |
1381 | * case of failure. | 1381 | * case of failure. |
1382 | */ | 1382 | */ |
1383 | int ubi_wl_init_scan(struct ubi_device *ubi, struct ubi_attach_info *si) | 1383 | int ubi_wl_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai) |
1384 | { | 1384 | { |
1385 | int err, i; | 1385 | int err, i; |
1386 | struct rb_node *rb1, *rb2; | 1386 | struct rb_node *rb1, *rb2; |
@@ -1392,7 +1392,7 @@ int ubi_wl_init_scan(struct ubi_device *ubi, struct ubi_attach_info *si) | |||
1392 | spin_lock_init(&ubi->wl_lock); | 1392 | spin_lock_init(&ubi->wl_lock); |
1393 | mutex_init(&ubi->move_mutex); | 1393 | mutex_init(&ubi->move_mutex); |
1394 | init_rwsem(&ubi->work_sem); | 1394 | init_rwsem(&ubi->work_sem); |
1395 | ubi->max_ec = si->max_ec; | 1395 | ubi->max_ec = ai->max_ec; |
1396 | INIT_LIST_HEAD(&ubi->works); | 1396 | INIT_LIST_HEAD(&ubi->works); |
1397 | 1397 | ||
1398 | sprintf(ubi->bgt_name, UBI_BGT_NAME_PATTERN, ubi->ubi_num); | 1398 | sprintf(ubi->bgt_name, UBI_BGT_NAME_PATTERN, ubi->ubi_num); |
@@ -1406,7 +1406,7 @@ int ubi_wl_init_scan(struct ubi_device *ubi, struct ubi_attach_info *si) | |||
1406 | INIT_LIST_HEAD(&ubi->pq[i]); | 1406 | INIT_LIST_HEAD(&ubi->pq[i]); |
1407 | ubi->pq_head = 0; | 1407 | ubi->pq_head = 0; |
1408 | 1408 | ||
1409 | list_for_each_entry_safe(aeb, tmp, &si->erase, u.list) { | 1409 | list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) { |
1410 | cond_resched(); | 1410 | cond_resched(); |
1411 | 1411 | ||
1412 | e = kmem_cache_alloc(ubi_wl_entry_slab, GFP_KERNEL); | 1412 | e = kmem_cache_alloc(ubi_wl_entry_slab, GFP_KERNEL); |
@@ -1422,7 +1422,7 @@ int ubi_wl_init_scan(struct ubi_device *ubi, struct ubi_attach_info *si) | |||
1422 | } | 1422 | } |
1423 | } | 1423 | } |
1424 | 1424 | ||
1425 | list_for_each_entry(aeb, &si->free, u.list) { | 1425 | list_for_each_entry(aeb, &ai->free, u.list) { |
1426 | cond_resched(); | 1426 | cond_resched(); |
1427 | 1427 | ||
1428 | e = kmem_cache_alloc(ubi_wl_entry_slab, GFP_KERNEL); | 1428 | e = kmem_cache_alloc(ubi_wl_entry_slab, GFP_KERNEL); |
@@ -1436,7 +1436,7 @@ int ubi_wl_init_scan(struct ubi_device *ubi, struct ubi_attach_info *si) | |||
1436 | ubi->lookuptbl[e->pnum] = e; | 1436 | ubi->lookuptbl[e->pnum] = e; |
1437 | } | 1437 | } |
1438 | 1438 | ||
1439 | ubi_rb_for_each_entry(rb1, sv, &si->volumes, rb) { | 1439 | ubi_rb_for_each_entry(rb1, sv, &ai->volumes, rb) { |
1440 | ubi_rb_for_each_entry(rb2, aeb, &sv->root, u.rb) { | 1440 | ubi_rb_for_each_entry(rb2, aeb, &sv->root, u.rb) { |
1441 | cond_resched(); | 1441 | cond_resched(); |
1442 | 1442 | ||