]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: Introduce 'prev' geometry to support reshape.
authorNeilBrown <neilb@suse.de>
Thu, 12 Apr 2012 06:12:21 +0000 (16:12 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 12 Apr 2012 06:12:21 +0000 (16:12 +1000)
commitc42ec468594abfa7156b42a285625cf157b03ec1
treed9bccaacd0928d6707a161ca46de1c396ce95ea5
parentd81f8a2b9e205110727de4e1d0e243cf22a7e59d
md/raid10: Introduce 'prev' geometry to support reshape.

When RAID10 supports reshape it will need a 'previous' and a 'current'
geometry, so introduce that here.
Use the 'prev' geometry when before the reshape_position, and the
current 'geo' when beyond it.  At other times, use both as
appropriate.

For now, both are identical (And reshape_position is never set).

When we use the 'prev' geometry, we must use the old data_offset.
When we use the current (And a reshape is happening) we must use
the new_data_offset.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c
drivers/md/raid10.h