]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: always set conf->prev_chunk_sectors and ->prev_algo
authorNeilBrown <neilb@suse.com>
Fri, 17 Jul 2015 02:17:50 +0000 (12:17 +1000)
committerNeilBrown <neilb@suse.com>
Mon, 31 Aug 2015 17:32:25 +0000 (19:32 +0200)
commitb572072e3f17fbfac187d62af2d3f4c9d401295c
tree5d6690c3656baf707764189d8f5f2fc3df6a7154
parenta4a88a63332dc51ddd18631366aae4196f8558ab
md/raid5: always set conf->prev_chunk_sectors and ->prev_algo

These aren't really needed when no reshape is happening,
but it is safer to have them always set to a meaningful value.
The next patch will use ->prev_chunk_sectors without checking
if a reshape is happening (because that makes the code simpler),
and this patch makes that safe.

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