diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-17 07:38:34 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:26:02 -0400 |
commit | 517af48c0540e61bbe0ebbb5f463afe937b73894 (patch) | |
tree | e97c38c582bf92682a254d6f5bc823c86d0572d5 /drivers/mtd/ubi/eba.c | |
parent | a4e6042f1d073073f88e0ad6d2a7450da9a3937d (diff) |
UBI: rename sv to av
After re-naming the 'struct ubi_scan_volume' we should adjust all variables
named 'sv' to something else, because 'sv' stands for "scanning volume".
Let's rename it to 'av' which stands for "attaching volume" 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/eba.c')
-rw-r--r-- | drivers/mtd/ubi/eba.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c index 320372715405..572281a9a63c 100644 --- a/drivers/mtd/ubi/eba.c +++ b/drivers/mtd/ubi/eba.c | |||
@@ -1215,7 +1215,7 @@ static void print_rsvd_warning(struct ubi_device *ubi, | |||
1215 | int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai) | 1215 | int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai) |
1216 | { | 1216 | { |
1217 | int i, j, err, num_volumes; | 1217 | int i, j, err, num_volumes; |
1218 | struct ubi_ainf_volume *sv; | 1218 | struct ubi_ainf_volume *av; |
1219 | struct ubi_volume *vol; | 1219 | struct ubi_volume *vol; |
1220 | struct ubi_ainf_peb *aeb; | 1220 | struct ubi_ainf_peb *aeb; |
1221 | struct rb_node *rb; | 1221 | struct rb_node *rb; |
@@ -1246,17 +1246,17 @@ int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai) | |||
1246 | for (j = 0; j < vol->reserved_pebs; j++) | 1246 | for (j = 0; j < vol->reserved_pebs; j++) |
1247 | vol->eba_tbl[j] = UBI_LEB_UNMAPPED; | 1247 | vol->eba_tbl[j] = UBI_LEB_UNMAPPED; |
1248 | 1248 | ||
1249 | sv = ubi_scan_find_sv(ai, idx2vol_id(ubi, i)); | 1249 | av = ubi_scan_find_av(ai, idx2vol_id(ubi, i)); |
1250 | if (!sv) | 1250 | if (!av) |
1251 | continue; | 1251 | continue; |
1252 | 1252 | ||
1253 | ubi_rb_for_each_entry(rb, aeb, &sv->root, u.rb) { | 1253 | ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { |
1254 | if (aeb->lnum >= vol->reserved_pebs) | 1254 | if (aeb->lnum >= vol->reserved_pebs) |
1255 | /* | 1255 | /* |
1256 | * This may happen in case of an unclean reboot | 1256 | * This may happen in case of an unclean reboot |
1257 | * during re-size. | 1257 | * during re-size. |
1258 | */ | 1258 | */ |
1259 | ubi_scan_move_to_list(sv, aeb, &ai->erase); | 1259 | ubi_scan_move_to_list(av, aeb, &ai->erase); |
1260 | vol->eba_tbl[aeb->lnum] = aeb->pnum; | 1260 | vol->eba_tbl[aeb->lnum] = aeb->pnum; |
1261 | } | 1261 | } |
1262 | } | 1262 | } |