]> git.baikalelectronics.ru Git - kernel.git/commit
r5cache: set MD_JOURNAL_CLEAN correctly
authorSong Liu <songliubraving@fb.com>
Fri, 19 Aug 2016 22:34:01 +0000 (15:34 -0700)
committerShaohua Li <shli@fb.com>
Wed, 24 Aug 2016 17:21:50 +0000 (10:21 -0700)
commit76e2bbe8e06138d4f32e664fa6e47260cc29bfb8
treeb9b3e488a4202e79562a7b642741462a085cc16a
parentf4d0344c7edad084065793891678e9f7784d0981
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>
drivers/md/md.c
drivers/md/raid5.c