diff options
author | Adrian Hunter <adrian.hunter@nokia.com> | 2010-08-12 01:17:51 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-12 19:43:31 +0400 |
commit | fec4dcce237c7185ff7129e704bc508850b6e3f0 (patch) | |
tree | 018b868ff5a1a66ac5dfcbc8704362295987f4f6 /drivers/memstick | |
parent | 64f7120d890b892ed2c82c87bed958902e809075 (diff) | |
download | linux-fec4dcce237c7185ff7129e704bc508850b6e3f0.tar.xz |
mmc_test: fix large memory allocation
- Fix mmc_test_alloc_mem.
- Use nr_free_buffer_pages() instead of sysinfo.totalram to determine
total lowmem pages.
- Change variables containing memory sizes to unsigned long.
- Limit maximum test area size to 128MiB because that is the maximum MMC
high capacity erase size (the maxmium SD allocation unit size is just
4MiB)
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/memstick')
0 files changed, 0 insertions, 0 deletions