diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-08-19 14:00:57 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-15 09:50:46 +0200 |
commit | 611b7f9dc9f696ba0f9ab03b5c6500f3718cbebe (patch) | |
tree | fe04edbdb3c38b4c00a6b1288f0abea29b68746a /include | |
parent | 75ffcd85dff52e3e94a62587d339bc2fb81aba07 (diff) | |
download | linux-stable-611b7f9dc9f696ba0f9ab03b5c6500f3718cbebe.tar.gz linux-stable-611b7f9dc9f696ba0f9ab03b5c6500f3718cbebe.tar.bz2 linux-stable-611b7f9dc9f696ba0f9ab03b5c6500f3718cbebe.zip |
f2fs: guarantee to write dirty data when enabling checkpoint back
commit dddd3d65293a52c2c3850c19b1e5115712e534d8 upstream.
We must flush all the dirty data when enabling checkpoint back. Let's guarantee
that first by adding a retry logic on sync_inodes_sb(). In addition to that,
this patch adds to flush data in fsync when checkpoint is disabled, which can
mitigate the sync_inodes_sb() failures in advance.
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions