diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-01-26 17:00:42 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-02-01 14:32:50 -0800 |
commit | b0ff4fe746fd028eef920ddc8c7b0361c1ede6ec (patch) | |
tree | 2df5a5dea02e0738f0a7b10d51a81f099f0fb258 /fs/f2fs/inline.c | |
parent | d5f7bc0064e0541164bd3deeafad16bbb5992433 (diff) |
f2fs: flush data when enabling checkpoint back
During checkpoint=disable period, f2fs bypasses all the synchronous IOs such as
sync and fsync. So, when enabling it back, we must flush all of them in order
to keep the data persistent. Otherwise, suddern power-cut right after enabling
checkpoint will cause data loss.
Fixes: 4354994f097d ("f2fs: checkpoint disabling")
Cc: stable@vger.kernel.org
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inline.c')
0 files changed, 0 insertions, 0 deletions