]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: fix bug in reshape code when chunk_size decreases.
authorNeilBrown <neilb@suse.de>
Tue, 9 Jun 2009 06:32:22 +0000 (16:32 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 9 Jun 2009 06:32:22 +0000 (16:32 +1000)
commit3148f933b5103c97363daefb98b262ee3681d48b
tree0452e29d393b7688f09f38c98f113703d1b5cc3d
parent73affc6d98dbc417886e2a0288d8a0061cdd81f2
md/raid5: fix bug in reshape code when chunk_size decreases.

Now that we support changing the chunksize, we calculate
"reshape_sectors" to be the max of number of sectors in old
and new chunk size.
However there is one please where we still use 'chunksize'
rather than 'reshape_sectors'.
This causes a reshape that reduces the size of chunks to freeze.

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