linux/fs/f2fs
Jaegeuk Kim 9c694f73e7 FROMGIT: 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.

Bug: 171063590
Fixes: 4354994f09 ("f2fs: checkpoint disabling")
Cc: stable@vger.kernel.org
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 8d52dbb373579b48f5758dd0cdd2ac0fb4e5be7f git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev)
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Iaca2d6fc1841fffa8677d5d592732c94241fb3fb
2021-01-28 18:04:28 +00:00
..
acl.c f2fs: Remove the redundancy initialization 2020-12-21 13:33:13 -08:00
acl.h f2fs: Use the correct style for SPDX License Identifier 2020-05-08 06:55:55 -07:00
checkpoint.c f2fs: avoid race condition for shrinker count 2020-12-21 13:33:17 -08:00
compress.c f2fs: compress: fix compression chksum 2020-12-21 13:33:20 -08:00
compress.h f2fs: compress: fix compression chksum 2020-12-21 13:33:20 -08:00
data.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.10.y' into android12-5.10 2020-12-28 14:33:39 -08:00
debug.c f2fs: avoid race condition for shrinker count 2020-12-21 13:33:17 -08:00
dir.c fscrypt: introduce fscrypt_prepare_readdir() 2020-12-28 14:49:41 -08:00
extent_cache.c f2fs: support 64-bits key in f2fs rb-tree node entry 2020-09-10 14:03:30 -07:00
f2fs.h f2fs: prevent creating duplicate encrypted filenames 2020-12-28 14:49:39 -08:00
file.c f2fs: fix to seek incorrect data offset in inline data file 2020-12-26 16:02:42 +01:00
gc.c f2fs: change to use rwsem for cp_mutex 2020-12-21 13:33:14 -08:00
gc.h f2fs: support age threshold based garbage collection 2020-09-11 11:11:15 -07:00
hash.c f2fs: Handle casefolding with Encryption 2020-12-21 13:33:14 -08:00
inline.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.10.y' into android12-5.10 2020-12-28 14:33:39 -08:00
inode.c f2fs: compress: support chksum 2020-12-21 13:33:14 -08:00
Kconfig f2fs: compress: support lzo-rle compress algorithm 2020-05-11 20:36:46 -07:00
Makefile f2fs: support data compression 2020-01-17 16:48:07 -08:00
namei.c fscrypt: Have filesystems handle their d_ops 2020-12-21 13:33:13 -08:00
node.c f2fs: fix to account inline xattr correctly during recovery 2020-12-21 13:33:19 -08:00
node.h f2fs: avoid race condition for shrinker count 2020-12-21 13:33:17 -08:00
recovery.c f2fs: change to use rwsem for cp_mutex 2020-12-21 13:33:14 -08:00
segment.c f2fs: init dirty_secmap incorrectly 2020-12-26 16:02:42 +01:00
segment.h f2fs: fix wrong total_sections check and fsmeta check 2020-09-29 01:48:34 -07:00
shrinker.c f2fs: avoid race condition for shrinker count 2020-12-21 13:33:17 -08:00
super.c FROMGIT: f2fs: flush data when enabling checkpoint back 2021-01-28 18:04:28 +00:00
sysfs.c f2fs: introduce max_io_bytes, a sysfs entry, to limit bio size 2020-12-21 13:33:17 -08:00
trace.c
trace.h f2fs: Use the correct style for SPDX License Identifier 2020-05-08 06:55:55 -07:00
verity.c mm/readahead: make page_cache_ra_unbounded take a readahead_control 2020-10-16 11:11:16 -07:00
xattr.c Merge 7a3dadedc8 ("Merge tag 'f2fs-for-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs") into android-mainline 2020-10-26 09:43:41 +01:00
xattr.h f2fs: code cleanup by removing ifdef macro surrounding 2020-05-26 18:56:10 -07:00