f2fs-tools: update checkpoint data atomically
authorChao Yu <yuchao0@huawei.com>
Fri, 24 May 2019 08:26:40 +0000 (16:26 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 20 Aug 2019 18:23:51 +0000 (11:23 -0700)
commitd1094d9cffde308ef97b15bb9e7e0b17dd5adb99
treea1c4717c9b59e90dfde2b0f60292838a495f64f3
parentee0025a13f6f4cf878ccd9ebd0591d2f0b78d89a
f2fs-tools: update checkpoint data atomically

This patch keeps line with f2fs kernel module for checkpoint update:
1. writeback all blocks inside checkpoint except last cp_park block;
2. fsync;
3. write last cp_park block;
4. fsync;

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c
fsck/mount.c