:Remove the prot tree from the WL unit
Quoted 8 lines · Artem Bityutskiy
Quoted 7 lines · xiaochuan-xu
Hi,
Quoted 4 lines
Cool, thanks. However, if I grep for "prot", I still find some traces of protection trees. Try this. They should be removed as well.
Quoted 5 lines
Quoted 2 lines
Yes, a few "protect" words are still in the
wl.cfile. 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.
Signature · 3 lines
yours Sincerely, xiaochuan-xu (许小川)
Hi Artem,
Quoted 5 lines · Artem Bityutskiy
Sure, this is an intermediate state. Your next patches should fix this. We just removed the protection tree separately because it is an independed step and it will make further patches simpler to review and understand.
I believe the next patch should modify the used tree, i.e., adding the @tempr element to @struct ubi_wl_entry and some relative sentences. Of course, a used tree special function refer to as @wl_used_tree_add() is in need.
What do you think?
Signature · 3 lines
yours Sincerely, xiaochuan-xu (许小川)
Quoted 6 lines · xiaochuan-xu
I believe the next patch should modify the used tree, i.e., adding the @tempr element to @struct
ubi_wl_entryand some relative sentences. Of course, a used tree special function refer to as @wl_used_tree_add() is in need.What do you think?
That's fine. Please, do this.
A thing for you to think about:
One thing I am concerned about is memory consumption. The temperature is 'long long', so you add 64-bits to per-PEB objects. Do you think it will be possible to make it 32-bit to reduce memory usage, and deal with overflows somehow? Anyway, let's leave it 64-bit for now and see what we may do after this.
Thanks.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)