diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 1cd9bfb45e9a..9a880239219d 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -1738,6 +1738,11 @@ static void super_1_sync(mddev_t *mddev, mdk_rdev_t *rdev) | |||
1738 | sb->level = cpu_to_le32(mddev->level); | 1738 | sb->level = cpu_to_le32(mddev->level); |
1739 | sb->layout = cpu_to_le32(mddev->layout); | 1739 | sb->layout = cpu_to_le32(mddev->layout); |
1740 | 1740 | ||
1741 | if (test_bit(WriteMostly, &rdev->flags)) | ||
1742 | sb->devflags |= WriteMostly1; | ||
1743 | else | ||
1744 | sb->devflags &= ~WriteMostly1; | ||
1745 | |||
1741 | if (mddev->bitmap && mddev->bitmap_info.file == NULL) { | 1746 | if (mddev->bitmap && mddev->bitmap_info.file == NULL) { |
1742 | sb->bitmap_offset = cpu_to_le32((__u32)mddev->bitmap_info.offset); | 1747 | sb->bitmap_offset = cpu_to_le32((__u32)mddev->bitmap_info.offset); |
1743 | sb->feature_map = cpu_to_le32(MD_FEATURE_BITMAP_OFFSET); | 1748 | sb->feature_map = cpu_to_le32(MD_FEATURE_BITMAP_OFFSET); |