diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-10-02 18:17:37 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-10-02 19:02:31 +0300 |
commit | 042745ee53a0a7c1f5aff191a4a24213c6dcfb52 (patch) | |
tree | 623f271b1b370a493b1c2adc9c0b2734749a934c /net/mac80211/rate.h | |
parent | 2a708cff93f1845b9239bc7d6310aef54e716c6a (diff) | |
download | linux-042745ee53a0a7c1f5aff191a4a24213c6dcfb52.tar.xz |
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 <mpatocka@redhat.com>
Fixes: 3a0f9aaee028 ("dm raid: round region_size to power of two")
Cc: stable@vger.kernel.org # v3.8+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'net/mac80211/rate.h')
0 files changed, 0 insertions, 0 deletions