Files
linux/drivers
Mikulas Patocka bad5bfcd07 dm raid: fix round up of default region size
commit 042745ee53 upstream.

Commit 3a0f9aaee0 ("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 <mpatocka@redhat.com>
Fixes: 3a0f9aaee0 ("dm raid: round region_size to power of two")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-22 14:37:50 -07:00
..
2013-12-08 07:29:25 -08:00
2013-05-17 14:31:05 -04:00
2015-08-16 20:51:39 -07:00
2015-09-21 10:00:07 -07:00
2015-10-22 14:37:50 -07:00
2015-05-06 21:56:25 +02:00