From: Adrian Hunter Date: Wed, 11 Aug 2010 21:17:51 +0000 (-0700) Subject: mmc_test: fix large memory allocation X-Git-Tag: v2.6.36-rc1~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fec4dcce237c7185ff7129e704bc508850b6e3f0;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed