提交 a83832a7 编写于 作者: R Richard Weinberger

UBI: Fastmap: Remove bogus ubi_assert()

It is legal to have PEBs left in the used list.
This can happen if UBI copies a PEB and a powercut happens
between writing a new fastmap and adding this PEB into the EBA table.
In this case the old PEB will be used.
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 36a87e44
...@@ -814,7 +814,9 @@ static int ubi_attach_fastmap(struct ubi_device *ubi, ...@@ -814,7 +814,9 @@ static int ubi_attach_fastmap(struct ubi_device *ubi,
list_for_each_entry_safe(tmp_aeb, _tmp_aeb, &free, u.list) list_for_each_entry_safe(tmp_aeb, _tmp_aeb, &free, u.list)
list_move_tail(&tmp_aeb->u.list, &ai->free); list_move_tail(&tmp_aeb->u.list, &ai->free);
ubi_assert(list_empty(&used)); list_for_each_entry_safe(tmp_aeb, _tmp_aeb, &used, u.list)
list_move_tail(&tmp_aeb->u.list, &ai->erase);
ubi_assert(list_empty(&eba_orphans)); ubi_assert(list_empty(&eba_orphans));
ubi_assert(list_empty(&free)); ubi_assert(list_empty(&free));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册