From: Mikulas Patocka Date: Fri, 2 Oct 2015 15:17:37 +0000 (-0400) Subject: dm raid: fix round up of default region size X-Git-Tag: omap-for-v4.3/fixes-rc5~23^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=042745ee53a0a7c1f5aff191a4a24213c6dcfb52;p=pandora-kernel.git dm raid: fix round up of default region size Commit 3a0f9aaee028 ("dm raid: round region_size to power of two") intended to make sure that the default region size is a power of two. However, the logic in that commit is incorrect and sets the variable region_size to 0 or 1, depending on whether min_region_size is a power of two. Fix this logic, using roundup_pow_of_two(), so that region_size is properly rounded up to the next power of two. Signed-off-by: Mikulas Patocka Fixes: 3a0f9aaee028 ("dm raid: round region_size to power of two") Cc: stable@vger.kernel.org # v3.8+ Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed