From: Artem Bityutskiy Date: Fri, 11 Mar 2011 15:11:25 +0000 (+0200) Subject: UBIFS: allocate orphans scan buffer on demand X-Git-Tag: v2.6.39-rc1~421^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5cf319cf32d2284b3fbc24f3c526e2a9363b4ac;p=pandora-kernel.git 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 --- Reading git-diff-tree failed