|
@@ -7159,6 +7159,13 @@ static int raid5_run(struct mddev *mddev)
|
|
min_offset_diff = diff;
|
|
min_offset_diff = diff;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if ((test_bit(MD_HAS_JOURNAL, &mddev->flags) || journal_dev) &&
|
|
|
|
+ (mddev->bitmap_info.offset || mddev->bitmap_info.file)) {
|
|
|
|
+ pr_notice("md/raid:%s: array cannot have both journal and bitmap\n",
|
|
|
|
+ mdname(mddev));
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (mddev->reshape_position != MaxSector) {
|
|
if (mddev->reshape_position != MaxSector) {
|
|
/* Check that we can continue the reshape.
|
|
/* Check that we can continue the reshape.
|
|
* Difficulties arise if the stripe we would write to
|
|
* Difficulties arise if the stripe we would write to
|