[PATCH v3] UBI: add lnum and vol_id to struct ubi_work
Artem Bityutskiy
dedekind1 at gmail.com
Fri May 18 10:21:09 EDT 2012
On Fri, 2012-05-18 at 15:40 +0200, Joel Reardon wrote:
> This is part of a multipart patch to allow UBI to force the erasure of
> particular logical eraseblock numbers. In this patch, the volume id and LEB
> number are added to ubi_work data structure, and both are also passed as a
> parameter to schedule erase to set it appropriately. Whenever ubi_wl_put_peb
> is called, the lnum is also passed to be forwarded to schedule erase. Later,
> a new ubi_sync_lnum will be added to execute immediately all work related to
> that lnum.
>
> This was tested by outputting the vol_id and lnum during the schedule of
> erasure. The ubi thread was disabled and two ubifs drives on separate
> partitions repeated changed a small number of LEBs. The ubi module was readded, and all
> the erased LEBs, corresponding to the volumes, were added to the schedule
> erase queue.
>
> Signed-off-by: Joel Reardon <reardonj at inf.ethz.ch>
Pushed to the "joel" branch, thanks. I did few amendments.
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120518/3d7a5295/attachment.sig>
More information about the linux-mtd
mailing list