Correctly initialise backup_point when reshaping backwards.
When reshaping backwards we only backup from backup_blocks to the start, so initialise backup_point appropriately. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
2c6ac128c4
commit
25da62d9ad
2
Grow.c
2
Grow.c
|
@ -2787,7 +2787,7 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape,
|
||||||
suspend_point = 0;
|
suspend_point = 0;
|
||||||
} else {
|
} else {
|
||||||
array_size = sra->component_size * reshape->before.data_disks;
|
array_size = sra->component_size * reshape->before.data_disks;
|
||||||
backup_point = array_size;
|
backup_point = reshape->backup_blocks;
|
||||||
suspend_point = array_size;
|
suspend_point = array_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue