md/raid10: Introduce 'prev' geometry to support reshape.
authorNeilBrown <neilb@suse.de>
Sun, 20 May 2012 23:28:33 +0000 (09:28 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 20 May 2012 23:28:33 +0000 (09:28 +1000)
commitf8c9e74ff0832f2244d7991d2aea13851b20a622
treedb07ef3ecc00f83d3d9b854929a4cb13def456a7
parentc804cdecea418c067ee7359d62139b2b3c8cec39
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