UBIFS: pre-allocate bulk-read buffer
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 19 Nov 2008 09:53:15 +0000 (11:53 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 21 Nov 2008 16:59:33 +0000 (18:59 +0200)
To avoid memory allocation failure during bulk-read, pre-allocate
a bulk-read buffer, so that if there is only one bulk-reader at
a time, it would just use the pre-allocated buffer and would not
do any memory allocation. However, if there are more than 1 bulk-
reader, then only one reader would use the pre-allocated buffer,
while the other reader would allocate the buffer for itself.

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

diff --cc fs/ubifs/file.c
Simple merge
Simple merge
Simple merge