aboutsummaryrefslogtreecommitdiff
path: root/scripts/cleanpatch
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2015-10-02 11:17:37 -0400
committerMoyster <oysterized@gmail.com>2016-08-26 20:44:36 +0200
commitae2615de87717546bd0ddeaf33445c843e9fa030 (patch)
tree94abf3a44829aa5989e3844f7e94ee4875ad1617 /scripts/cleanpatch
parent9196bcc235600bc61c03fb30b841d3eaf7022d57 (diff)
dm raid: fix round up of default region size
commit 042745ee53a0a7c1f5aff191a4a24213c6dcfb52 upstream. 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 <mpatocka@redhat.com> Fixes: 3a0f9aaee028 ("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> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions