aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r--drivers/md/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index f0769b34d656..7fc028f9701e 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -651,7 +651,7 @@ static int bitmap_read_sb(struct bitmap *bitmap)
651 reason = "unrecognized superblock version"; 651 reason = "unrecognized superblock version";
652 else if (chunksize < 512) 652 else if (chunksize < 512)
653 reason = "bitmap chunksize too small"; 653 reason = "bitmap chunksize too small";
654 else if ((1 << ffz(~chunksize)) != chunksize) 654 else if (!is_power_of_2(chunksize))
655 reason = "bitmap chunksize not a power of 2"; 655 reason = "bitmap chunksize not a power of 2";
656 else if (daemon_sleep < 1 || daemon_sleep > MAX_SCHEDULE_TIMEOUT) 656 else if (daemon_sleep < 1 || daemon_sleep > MAX_SCHEDULE_TIMEOUT)
657 reason = "daemon sleep period out of range"; 657 reason = "daemon sleep period out of range";