From: Artem Bityutskiy Date: Wed, 19 Nov 2008 09:53:15 +0000 (+0200) Subject: UBIFS: pre-allocate bulk-read buffer X-Git-Tag: Release-2010-05/1~3^2~162 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2aac7cdd8674d40fb46405bc5e52cd53bae299b;p=pandora-kernel.git UBIFS: pre-allocate bulk-read buffer 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 --- Reading git-diff-tree failed