Commit 90c60a51 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Will Deacon
Browse files

UPSTREAM: 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.

Bug: 194449609
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit dddd3d65)
Change-Id: I5bbef7386ddbb44fd925262fb68a8ef0a4960993
parent 8cf5bb69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment