]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: guarantee to write dirty data when enabling checkpoint back
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 19 Aug 2021 21:00:57 +0000 (14:00 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 30 Aug 2021 17:12:47 +0000 (10:12 -0700)
commit167383cc40836264b1c3e19ef749d43c9db3d5af
treedfbcce98983e1e41ed25cee8365056fe6112df5a
parent0b309e17d2cac17b8e8395ae62c1ddd6c3d4b298
f2fs: guarantee to write dirty data when enabling checkpoint back

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>
fs/f2fs/file.c
fs/f2fs/super.c