diff options
author | Grant Erickson <marathon96@gmail.com> | 2011-04-08 17:51:33 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-05-25 03:00:45 +0200 |
commit | 3e45cf5e85a4f344fc4c8c901ac057a2402db125 (patch) | |
tree | bf395c31e85b6c0f9544aa52820d78d9ba8da8e7 /fs/jffs2/scan.c | |
parent | mtd: create function to perform large allocations (diff) | |
download | linux-3e45cf5e85a4f344fc4c8c901ac057a2402db125.tar.xz linux-3e45cf5e85a4f344fc4c8c901ac057a2402db125.zip |
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 <marathon96@gmail.com>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'fs/jffs2/scan.c')
0 files changed, 0 insertions, 0 deletions