f2fs: check in-memory nat version bitmap
authorChao Yu <yuchao0@huawei.com>
Sat, 7 Jan 2017 10:52:01 +0000 (18:52 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 02:48:49 +0000 (18:48 -0800)
commit599a09b2c1ac222e6aad0c22515d1ccde7c3b702
tree55d398c8c0c971edf8f31e7be9d811e93b199801
parent355e78913c0d57492076d545b6f44b94fec2bf6b
f2fs: check in-memory nat version bitmap

This patch adds a mirror for nat 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/f2fs.h
fs/f2fs/node.c
fs/f2fs/node.h