• A
    UBIFS: allocate lpt dump buffer on demand · cab95d44
    Artem Bityutskiy 提交于
    Instead of using pre-allocated 'c->dbg->buf' buffer in
    'dump_lpt_leb()', dynamically allocate it when needed. The intend
    is to get rid of the pre-allocated 'c->dbg->buf' buffer and save
    128KiB of RAM (or more if PEB size is larger). Indeed, currently we
    allocate this memory even if the user never enables any self-check,
    which is wasteful.
    Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    cab95d44
lpt_commit.c 50.8 KB