summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-01-07 18:52:01 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-22 18:48:49 -0800
commit599a09b2c1ac222e6aad0c22515d1ccde7c3b702 (patch)
tree55d398c8c0c971edf8f31e7be9d811e93b199801 /fs/f2fs/f2fs.h
parent355e78913c0d57492076d545b6f44b94fec2bf6b (diff)
downloadop-kernel-dev-599a09b2c1ac222e6aad0c22515d1ccde7c3b702.zip
op-kernel-dev-599a09b2c1ac222e6aad0c22515d1ccde7c3b702.tar.gz
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>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 94250a6..4a84b3f 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -540,6 +540,9 @@ struct f2fs_nm_info {
/* for checkpoint */
char *nat_bitmap; /* NAT bitmap pointer */
+#ifdef CONFIG_F2FS_CHECK_FS
+ char *nat_bitmap_mir; /* NAT bitmap mirror */
+#endif
int bitmap_size; /* bitmap size */
};
OpenPOWER on IntegriCloud