From: Grant Erickson Date: Fri, 8 Apr 2011 15:51:33 +0000 (-0700) Subject: mtd: mtdchar: retry large buffer allocations X-Git-Tag: v3.0-rc1~32^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e45cf5e85a4f344fc4c8c901ac057a2402db125;p=pandora-kernel.git mtd: mtdchar: 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 Tested-by: Ben Gardiner Tested-by: Stefano Babic Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed