Android 11.0.0 release 0.75
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: 4354994f097d ("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
(cherry picked from commit e39210f0cc71f9bab72fb7517d1b58738dfaed86)
(cherry picked from commit af150d40f5cb3500a84548798c08b0dc8bb995d2)
1 file changed
tree: 0e60ed76a6147193f91115f8bdc770ca93b1223d
  1. arch/
  2. block/
  3. certs/
  4. crypto/
  5. Documentation/
  6. drivers/
  7. firmware/
  8. fs/
  9. include/
  10. init/
  11. ipc/
  12. kernel/
  13. lib/
  14. mm/
  15. net/
  16. samples/
  17. scripts/
  18. security/
  19. sound/
  20. techpack/
  21. test/
  22. tools/
  23. usr/
  24. virt/
  25. .clang-format
  26. .cocciconfig
  27. .get_maintainer.ignore
  28. .gitattributes
  29. .gitignore
  30. .mailmap
  31. Androidbp
  32. AndroidKernel.mk
  33. build.config
  34. build.config.boundsan
  35. build.config.common
  36. build.config.common.clang
  37. build.config.cuttlefish.aarch64
  38. build.config.cuttlefish.x86_64
  39. build.config.debug_api
  40. build.config.debug_hang
  41. build.config.debug_locking
  42. build.config.debug_memory
  43. build.config.floral
  44. build.config.floral.common
  45. build.config.floral.common.clang
  46. build.config.floral_debug_api
  47. build.config.floral_debug_hang
  48. build.config.floral_debug_locking
  49. build.config.floral_debug_memory
  50. build.config.floral_kasan
  51. build.config.floral_khwasan
  52. build.config.floral_no-cfi
  53. build.config.floral_performance
  54. build.config.gcc
  55. build.config.goldfish.arm
  56. build.config.goldfish.arm64
  57. build.config.goldfish.mips
  58. build.config.goldfish.mips64
  59. build.config.goldfish.x86
  60. build.config.goldfish.x86_64
  61. build.config.kasan
  62. build.config.khwasan
  63. build.config.no-cfi
  64. build.config.performance
  65. build.config.sunfish
  66. build.config.sunfish.common
  67. build.config.sunfish.common.clang
  68. build.config.sunfish_debug_api
  69. build.config.sunfish_debug_hang
  70. build.config.sunfish_debug_locking
  71. build.config.sunfish_debug_memory
  72. build.config.sunfish_kasan
  73. build.config.sunfish_khwasan
  74. build.config.sunfish_no-cfi
  75. build.config.sunfish_performance
  76. build_floral.sh
  77. build_sunfish.sh
  78. COPYING
  79. CREDITS
  80. gen_headers_arm.bp
  81. gen_headers_arm64.bp
  82. Kbuild
  83. Kconfig
  84. kernel_headers.py
  85. MAINTAINERS
  86. Makefile
  87. OWNERS
  88. PREUPLOAD.cfg
  89. README
  90. verity_dev_keys.x509