]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: collect some geometry fields into a dedicated structure.
authorNeilBrown <neilb@suse.de>
Thu, 12 Apr 2012 06:12:20 +0000 (16:12 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 12 Apr 2012 06:12:20 +0000 (16:12 +1000)
commit5c9d24ee0cd6b77451d0bc341fd4bda5b8435608
tree0a1104e1f1784672af21b0d6ef57315befe1e5db
parent167706d8c9d1fcf6d1a62b5a465ce4d785264f8c
md/raid10: collect some geometry fields into a dedicated structure.

We will shortly be adding reshape support for RAID10 which will
require it having 2 concurrent geometries (before and after).
To make that easier, collect most geometry fields into 'struct geom'
and access them from there.  Then we will more easily be able to add
a second set of fields.

Note that 'copies' is not in this struct and so cannot be changed.
There is little need to change this number and doing so is a lot
more difficult as it requires reallocating more things.
So leave it out for now.

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