diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-11 14:50:37 +0100 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-16 13:05:24 +0100 |
commit | cd5f7485bbbbfeea4363b535abeaa01df6942c66 (patch) | |
tree | 8cdb932adf5d1b4fba627ec30b966fd89efc2326 /fs/ubifs/journal.c | |
parent | UBIFS: allocate dump buffer on demand (diff) | |
download | linux-cd5f7485bbbbfeea4363b535abeaa01df6942c66.tar.xz linux-cd5f7485bbbbfeea4363b535abeaa01df6942c66.zip |
UBIFS: allocate scanning buffer on demand
Instead of using pre-allocated 'c->dbg->buf' buffer in
'scan_check_cb()', 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: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/journal.c')
0 files changed, 0 insertions, 0 deletions