]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Remove write_range from calculation of max_progress
authorNeilBrown <neilb@suse.de>
Tue, 11 Jan 2011 04:07:57 +0000 (15:07 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 11 Jan 2011 04:07:57 +0000 (15:07 +1100)
commit2f3dd5e4bc8a7b895cf450294cbad9a3215311e0
treee5c921a7e07e3b05d5b32f43efbde5dfc71ca359
parentec757320c24df8041b7cb56c1d9dd512e99e7043
Remove write_range from calculation of max_progress

It isn't needed as we always work in multiples of full
destination stripes.

Also multiply by 'after' disks, not before.

We can progress until the point we would write then lines up with
where we would read now.
We read now from
  array-address: reshape_progress   device-address: read_offset
So we write then to
  device-address: read_offset    array-address:  read_offset * after.disks

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c