f2fs: check in-memory sit version bitmap
authorChao Yu <yuchao0@huawei.com>
Sat, 7 Jan 2017 10:52:34 +0000 (18:52 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 02:48:50 +0000 (18:48 -0800)
commitae27d62e6befd3cac4ffa702e644cc52019642e8
treed1056be266950f6b7da2564001c9c71df7f7983e
parent599a09b2c1ac222e6aad0c22515d1ccde7c3b702
f2fs: check in-memory sit version bitmap

This patch adds a mirror for sit version 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