|
@@ -692,7 +692,7 @@ static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk,
|
|
#ifdef CONFIG_MTD_UBI_FASTMAP
|
|
#ifdef CONFIG_MTD_UBI_FASTMAP
|
|
/* Check whether we need to produce an anchor PEB */
|
|
/* Check whether we need to produce an anchor PEB */
|
|
if (!anchor)
|
|
if (!anchor)
|
|
- anchor = !anchor_pebs_avalible(&ubi->free);
|
|
|
|
|
|
+ anchor = !anchor_pebs_available(&ubi->free);
|
|
|
|
|
|
if (anchor) {
|
|
if (anchor) {
|
|
e1 = find_anchor_wl_entry(&ubi->used);
|
|
e1 = find_anchor_wl_entry(&ubi->used);
|