diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-01-07 11:52:01 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-23 03:48:49 +0100 |
commit | 599a09b2c1ac222e6aad0c22515d1ccde7c3b702 (patch) | |
tree | 55d398c8c0c971edf8f31e7be9d811e93b199801 /fs/f2fs/f2fs.h | |
parent | f2fs: check in-memory block bitmap (diff) | |
download | linux-599a09b2c1ac222e6aad0c22515d1ccde7c3b702.tar.xz linux-599a09b2c1ac222e6aad0c22515d1ccde7c3b702.zip |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 94250a69762a..4a84b3fbbfd1 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 */ }; |