]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
UBIFS: allocate scanning buffer on demand
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 11 Mar 2011 13:50:37 +0000 (15:50 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 16 Mar 2011 12:05:24 +0000 (14:05 +0200)
commitcd5f7485bbbbfeea4363b535abeaa01df6942c66
tree8cdb932adf5d1b4fba627ec30b966fd89efc2326
parent73d9aec3fd212d7bf8af5aa1eca9c79f8a90ad5a
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>
fs/ubifs/lprops.c