Re: [f2fs-dev] [PATCH] fsck: introduce generic function f2fs_fsync_device

2017-10-17 Thread Chao Yu
On 2017/10/17 15:03, Yunlei He wrote: > We use f2fs_finalize_device to fsync previous data in > checkpoint area before write last CP pack, in order to avoid > cp corruption in sudden-power-off case. But this function will > close the device, so this patch introduce a function to call > fsync() only

[f2fs-dev] [PATCH] fsck: introduce generic function f2fs_fsync_device

2017-10-17 Thread Yunlei He
We use f2fs_finalize_device to fsync previous data in checkpoint area before write last CP pack, in order to avoid cp corruption in sudden-power-off case. But this function will close the device, so this patch introduce a function to call fsync() only. Signed-off-by: Yunlei He --- fsck/mount.c