md/raid5: initialize next_checkpoint field before use
authorZhengyuan Liu <liuzhengyuan@kylinos.cn>
Mon, 24 Oct 2016 01:55:20 +0000 (09:55 +0800)
committerShaohua Li <shli@fb.com>
Mon, 24 Oct 2016 22:28:18 +0000 (15:28 -0700)
commit28cd88e2b4c54a466dcae7eea1efac766d42386b
tree6b4d215745f50e64aee78d25cfbb77cb593c18cd
parent579ed34f7b751b8add233cba4cf755258dbdd60a
md/raid5: initialize next_checkpoint field before use

No initial operation was done to this field when we
load/recovery the log, it got assignment only when IO
to raid disk was finished. So r5l_quiesce may use wrong
next_checkpoint to reclaim log space, that would make
reclaimable space calculation confused.

Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c