]> git.baikalelectronics.ru Git - kernel.git/commit
JFFS2: retry large buffer allocations
authorGrant Erickson <marathon96@gmail.com>
Fri, 8 Apr 2011 15:51:34 +0000 (08:51 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 01:00:50 +0000 (02:00 +0100)
commit3634ce14ced1893eed30d865d6c160b8abfe1d1c
tree040b7bdc00b8cba4e51440e5aa8d598555bc2678
parentf9e637d38f257fbe39ac8a5708fad13afa86b361
JFFS2: retry large buffer allocations

Replace direct call to kmalloc for a potentially large, contiguous
buffer allocation with one to mtd_kmalloc_up_to which helps ensure the
operation can succeed under low-memory, highly- fragmented situations
albeit somewhat more slowly.

Signed-off-by: Grant Erickson <marathon96@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/scan.c