diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 78c7418478d6..cd12fca73b0d 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -1028,7 +1028,6 @@ static int super_1_validate(mddev_t *mddev, mdk_rdev_t *rdev) | |||
1028 | mddev->size = le64_to_cpu(sb->size)/2; | 1028 | mddev->size = le64_to_cpu(sb->size)/2; |
1029 | mddev->events = le64_to_cpu(sb->events); | 1029 | mddev->events = le64_to_cpu(sb->events); |
1030 | mddev->bitmap_offset = 0; | 1030 | mddev->bitmap_offset = 0; |
1031 | mddev->default_bitmap_offset = 0; | ||
1032 | mddev->default_bitmap_offset = 1024; | 1031 | mddev->default_bitmap_offset = 1024; |
1033 | 1032 | ||
1034 | mddev->recovery_cp = le64_to_cpu(sb->resync_offset); | 1033 | mddev->recovery_cp = le64_to_cpu(sb->resync_offset); |
@@ -2932,6 +2931,9 @@ static int set_array_info(mddev_t * mddev, mdu_array_info_t *info) | |||
2932 | 2931 | ||
2933 | mddev->sb_dirty = 1; | 2932 | mddev->sb_dirty = 1; |
2934 | 2933 | ||
2934 | mddev->default_bitmap_offset = MD_SB_BYTES >> 9; | ||
2935 | mddev->bitmap_offset = 0; | ||
2936 | |||
2935 | /* | 2937 | /* |
2936 | * Generate a 128 bit UUID | 2938 | * Generate a 128 bit UUID |
2937 | */ | 2939 | */ |