From: Joe Thornber Date: Fri, 3 Jul 2015 09:22:42 +0000 (+0100) Subject: dm thin: allocate the cell_sort_array dynamically X-Git-Tag: omap-for-v4.3/fixes-merge-window~228^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a822c83e47d97cdef38c4352e1ef62d9f46cfe98;p=pandora-kernel.git dm thin: allocate the cell_sort_array dynamically Given the pool's cell_sort_array holds 8192 pointers it triggers an order 5 allocation via kmalloc. This order 5 allocation is prone to failure as system memory gets more fragmented over time. Fix this by allocating the cell_sort_array using vmalloc. Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer Cc: stable@vger.kernel.org --- Reading git-diff-tree failed