]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: do not allocate unneeded scan buffer
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Oct 2010 07:00:40 +0000 (10:00 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 21 Oct 2010 08:15:19 +0000 (11:15 +0300)
commit5b7a20552f3d9021a68b3c180bfc6c1d60f2ebcc
treed2b8a8805f5c9ce39609c3cbc348585f48238918
parente564f4468aa0f8eb89265d4b7863316b97744d15
UBIFS: do not allocate unneeded scan buffer

In 'ubifs_replay_journal()' we allocate 'sbuf' for scanning the log.
However, we already have 'c->sbuf' for these purposes, so do not
allocate yet another one. This reduces UBIFS memory consumption while
recovering.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/replay.c