diff options
author | Song Liu <songliubraving@fb.com> | 2016-08-19 15:34:01 -0700 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-08-24 10:21:50 -0700 |
commit | 486b0f7bcd64be027535811ef44195bc1027fbd3 (patch) | |
tree | b9b3e488a4202e79562a7b642741462a085cc16a | |
parent | c622ca543bff8e73efacf4dafa0cc9851ecea511 (diff) |
r5cache: set MD_JOURNAL_CLEAN correctly
Currently, the code sets MD_JOURNAL_CLEAN when the array has
MD_FEATURE_JOURNAL and the recovery_cp is MaxSector. The array
will be MD_JOURNAL_CLEAN even if the journal device is missing.
With this patch, the MD_JOURNAL_CLEAN is only set when the journal
device presents.
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>