[PATCH][UBI]:Remove the prot tree from the WL unit

xiaochuan-xu xiaochuan-xu at cqu.edu.cn
Wed Jul 16 10:36:11 EDT 2008


On Wed, 2008-07-16 at 17:20 +0300, Artem Bityutskiy wrote:
> On Wed, 2008-07-16 at 22:20 +0800, xiaochuan-xu wrote:
> > Hi,
> > 
> > > Cool, thanks. However, if I grep for "prot", I still find
> > > some traces of protection trees. Try this. They should be
> > > removed as well.
> > > 
> > 
> > Yes, a few "protect" words are still in the wl.c file.
> > but I the are not relative to the PROT tree. 
> 
> Ok, sorry, I'll look closer again.
> 

one problem,without the prot tree, is that when 
ubi_io_read_vid_hdr(ubi, e1->pnum, vid_hdr, 0) (in the
wear_leveling_worker function())return errorcode equals to
UBI_IO_PEB_FREE, such PEB @e1 has to insert back to @used/scrub tree.

a bit later, one other wear-leveling worker will select the some PEB
(@e1 above), UBI_IO_PEB_FREE returns again.

over and over agin.


-- 
yours Sincerely,

xiaochuan-xu (许小川)




More information about the linux-mtd mailing list