aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index f27e8f644dfe..8c1f7954882a 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2303,6 +2303,8 @@ static int add_new_disk(mddev_t * mddev, mdu_disk_info_t *info)
2303 else 2303 else
2304 rdev->in_sync = 0; 2304 rdev->in_sync = 0;
2305 2305
2306 rdev->sb_size = MD_SB_BYTES;
2307
2306 if (info->state & (1<<MD_DISK_WRITEMOSTLY)) 2308 if (info->state & (1<<MD_DISK_WRITEMOSTLY))
2307 set_bit(WriteMostly, &rdev->flags); 2309 set_bit(WriteMostly, &rdev->flags);
2308 2310