md: raid0/linear: ensure device sizes are rounded to chunk size.
authorNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 22:48:55 +0000 (08:48 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 22:48:55 +0000 (08:48 +1000)
commit13f2682b7216ebebd72b3d5868fe7fccec91a92d
treea5ba7509f0f6d61b2d7b478494a210794a8e55e3
parent1b57f132231593923cb4ab99943ddd777e8745bc
md: raid0/linear: ensure device sizes are rounded to chunk size.

This is currently ensured by common code, but it is more reliable to
ensure it where it is needed in personality code.
All the other personalities that care already round the size to
the chunk_size.  raid0 and linear are the only hold-outs.

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