mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
dm raid: fix new superblock/bitmap creation on disk addition
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
2527b56e0d
commit
f6895fd505
1 changed files with 2 additions and 1 deletions
|
|
@ -2850,8 +2850,9 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
|
|||
set_bit(RT_FLAG_KEEP_RS_FROZEN, &rs->runtime_flags);
|
||||
}
|
||||
|
||||
/* Create new superblocks and bitmaps, if any */
|
||||
if (rs->md.raid_disks < rs->raid_disks)
|
||||
set_bit(MD_ARRAY_FIRST_USE, &mddev->flags);
|
||||
set_bit(RT_FLAG_UPDATE_SBS, &rs->runtime_flags);
|
||||
|
||||
rs_set_cur(rs);
|
||||
rs_setup_recovery(rs, MaxSector);
|
||||
|
|
|
|||
Loading…
Reference in a new issue