We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f346f7 commit 2afe177Copy full SHA for 2afe177
drivers/md/md-bitmap.c
@@ -789,7 +789,7 @@ static int md_bitmap_new_disk_sb(struct bitmap *bitmap)
789
* is a good choice? We choose COUNTER_MAX / 2 arbitrarily.
790
*/
791
write_behind = bitmap->mddev->bitmap_info.max_write_behind;
792
- if (write_behind > COUNTER_MAX)
+ if (write_behind > COUNTER_MAX / 2)
793
write_behind = COUNTER_MAX / 2;
794
sb->write_behind = cpu_to_le32(write_behind);
795
bitmap->mddev->bitmap_info.max_write_behind = write_behind;
0 commit comments