[PATCH v2 14/35] ubifs: extend budget for blocks
Richard Weinberger
richard at nod.at
Fri Aug 21 00:12:37 PDT 2015
Am 21.08.2015 um 07:59 schrieb Dongsheng Yang:
> On 08/04/2015 04:56 AM, Richard Weinberger wrote:
>> Am 30.07.2015 um 07:48 schrieb Dongsheng Yang:
>>> Currently, budget subsystem in ubifs are working on budgeting
>
> [...]
>>> #endif
>>> + unsigned int new_block_num;
>>> + unsigned int dirtied_block_num;
>>
>> Why are these not under UBIFS_DEBUG?
>> I like the overflow checks.
>
> Sorry for the late reply.
>
> I did not find the overflow checks in my reading.
> Could you help to explain what kind of the check
> is it? and why we define in different way with
> UBIFS_DEBUG defined or not.
AFAICT the idea is that you see it from the value
from a crash dump.
i.e. if new_page is > 2 an overflow happened.
I don't know that Artem's original plan was.
But we could also automate this checks.
> And, Where did we define the UBIFS_DEBUG? I did not
> get the design of this macro. :(
You have define the macro yourself.
Thanks,
//richard
More information about the linux-mtd
mailing list