Jaegeuk Kim fb269781c8 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
Bug: 250489804
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit dddd3d65293a52c2c3850c19b1e5115712e534d8)
Change-Id: I5bbef7386ddbb44fd925262fb68a8ef0a4960993
(cherry picked from commit 90c60a51f510da64554abe9c6b748ed624543192)
2022-10-12 22:19:59 -07:00
..
2020-04-06 13:05:26 -07:00
2020-05-18 23:43:58 -07:00
2021-05-22 11:25:16 +02:00
2020-01-28 10:37:32 -08:00
2020-09-24 12:45:16 +02:00
2020-05-18 23:43:53 -07:00
2021-09-22 11:45:15 +02:00
2021-03-07 11:46:40 +01:00
2020-04-06 13:05:25 -07:00
2020-10-29 10:19:54 +01:00
2021-12-29 15:01:32 +01:00