commit | 3477d204658733aa3a87d3ae03b0327c1e599517 | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Wed Nov 19 11:53:15 2008 +0200 |
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Fri Nov 21 18:59:33 2008 +0200 |
tree | 1c9ba659f76c09a19b98f4bcbfac6fc67db43112 | |
parent | 6c0c42cdfd73fb161417403d8d077cb136e10bbf [diff] |
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 <Artem.Bityutskiy@nokia.com>