]> git.baikalelectronics.ru Git - kernel.git/commit
raid5-cache: correct condition for empty metadata write
authorShaohua Li <shli@fb.com>
Thu, 27 Oct 2016 22:22:13 +0000 (15:22 -0700)
committerShaohua Li <shli@fb.com>
Sat, 29 Oct 2016 05:04:03 +0000 (22:04 -0700)
commit1d5bd7b1eef4dab97b0dea31deac0873d9536c4f
treea10573f48736ba5b5e89fdc6f4f7844fae2ce133
parentd73584ebaa3c35178f338431f2436511ab00e0e8
raid5-cache: correct condition for empty metadata write

As long as we recover one metadata block, we should write the empty metadata
write. The original code could make recovery corrupted if only one meta is
valid.

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