commit | af3689f18aee728d6f1e0672da2b26c3cf93975d | [log] [tgz] |
---|---|---|
author | Yunlei He <heyunlei@huawei.com> | Tue Oct 17 15:03:51 2017 +0800 |
committer | Jaegeuk Kim <jaegeuk@google.com> | Mon Nov 13 11:17:49 2017 -0800 |
tree | bd53059d3f9e2ce9fe27e42bced1cdf42f34414e | |
parent | 8f8b7d5d5dbb99311b790c331902201658325d5a [diff] |
fsck: introduce generic function f2fs_fsync_device 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 <heyunlei@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>