UBIFS: allocate orphans scan buffer on demand
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 11 Mar 2011 15:11:25 +0000 (17:11 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 16 Mar 2011 12:05:25 +0000 (14:05 +0200)
commitf5cf319cf32d2284b3fbc24f3c526e2a9363b4ac
tree0d9a970edf83931e3fe7dbda8e2501aed87eb6c2
parentcab95d446cb766062fa7e2e7e326035d7c65b803
UBIFS: allocate orphans scan buffer on demand

Instead of using pre-allocated 'c->dbg->buf' buffer in
'dbg_scan_orphans()', 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/orphan.c
This page took 0.036542 seconds and 5 git commands to generate.