From: Mike Snitzer Date: Tue, 3 Jul 2012 11:55:37 +0000 (+0100) Subject: dm persistent data: fix allocation failure in space map checker init X-Git-Tag: v3.2.23~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4a30107e053c2cd698ffc9529870eab0b4f676;p=pandora-kernel.git dm persistent data: fix allocation failure in space map checker init commit b0239faaf87c38bb419c9264bf20817438ddc3a9 upstream. If CONFIG_DM_DEBUG_SPACE_MAPS is enabled and memory is fragmented and a sufficiently-large metadata device is used in a thin pool then the space map checker will fail to allocate the memory it requires. Switch from kmalloc to vmalloc to allow larger virtually contiguous allocations for the space map checker's internal count arrays. Reported-by: Vivek Goyal Signed-off-by: Mike Snitzer Signed-off-by: Alasdair G Kergon Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed