f2fs: check in-memory block bitmap
authorChao Yu <yuchao0@huawei.com>
Sat, 7 Jan 2017 10:51:01 +0000 (18:51 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 02:48:49 +0000 (18:48 -0800)
commit355e78913c0d57492076d545b6f44b94fec2bf6b
treec5bc399e8028a25db606d67c92ceb1e1685bb037
parent5fe457430e554a2f5188f13c1a2e36ad845640c5
f2fs: check in-memory block bitmap

This patch adds a mirror for valid block bitmap, and use it to detect
in-memory bitmap corruption which may be caused by bit-transition of
cache or memory overflow.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
fs/f2fs/segment.h