From: Artem Bityutskiy Date: Wed, 19 Nov 2008 09:53:15 +0000 (+0200) Subject: UBIFS: pre-allocate bulk-read buffer X-Git-Tag: v2.6.28-rc8~70^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3477d204658733aa3a87d3ae03b0327c1e599517;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