summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim2014-09-03 00:43:52 +0200
committerJaegeuk Kim2014-09-09 22:14:25 +0200
commit2ae4c673e3cbd69bc2decf6d7f5961f3c7b9b38b (patch)
tree188caa86c0c0d885ffae218580f9bf6f489dbc3f /fs/f2fs/super.c
parentf2fs: introduce F2FS_I_SB, F2FS_M_SB, and F2FS_P_SB (diff)
downloadkernel-qcow2-linux-2ae4c673e3cbd69bc2decf6d7f5961f3c7b9b38b.tar.gz
kernel-qcow2-linux-2ae4c673e3cbd69bc2decf6d7f5961f3c7b9b38b.tar.xz
kernel-qcow2-linux-2ae4c673e3cbd69bc2decf6d7f5961f3c7b9b38b.zip
f2fs: retain inconsistency information to initiate fsck.f2fs
This patch adds sbi->need_fsck to conduct fsck.f2fs later. This flag can only be removed by fsck.f2fs. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 41bdf511003d..a6923041f41a 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -849,6 +849,7 @@ static void init_sb_info(struct f2fs_sb_info *sbi)
atomic_set(&sbi->nr_pages[i], 0);
sbi->dir_level = DEF_DIR_LEVEL;
+ sbi->need_fsck = false;
}
/*