[f2fs-dev] [PATCH v5] f2fs: fix compressed file start atomic write may cause data corruption

2022-03-17 Thread Fengnan Chang via Linux-f2fs-devel
When compressed file has blocks, f2fs_ioc_start_atomic_write will succeed, but compressed flag will be remained in inode. If write partial compreseed cluster and commit atomic write will cause data corruption. This is the reproduction process: Step 1: create a compressed file ,write 64K data , cal

[f2fs-dev] [linux-next:master] BUILD REGRESSION 97add482e9033a9386baa8824fbea34d0cbfe663

2022-03-17 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 97add482e9033a9386baa8824fbea34d0cbfe663 Add linux-next specific files for 20220317 Error/Warning reports: https://lore.kernel.org/linux-doc/202202240704.pqd40a9l-...@intel.com https

[f2fs-dev] [PATCH v4] f2fs: fix compressed file start atomic write may cause data corruption

2022-03-17 Thread Fengnan Chang via Linux-f2fs-devel
When compressed file has blocks, f2fs_ioc_start_atomic_write will succeed, but compressed flag will be remained in inode. If write partial compreseed cluster and commit atomic write will cause data corruption. This is the reproduction process: Step 1: create a compressed file ,write 64K data , cal

[f2fs-dev] [PATCH] f2fs: use aggressive GC policy during f2fs_disable_checkpoint()

2022-03-17 Thread Chao Yu
Use more aggressive GC policy as below to improve performance of GC during f2fs_disable_checkpoint(): - use GC_URGENT_HIGH mode to enable greedy algorithm and SSR allocator; - use asynchronous GC and in-batch write to imporve possibility of IO merge. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h |

[f2fs-dev] [PATCH] f2fs: initialize sbi->gc_mode explicitly

2022-03-17 Thread Chao Yu
It needs to initialized sbi->gc_mode to GC_NORMAL explicitly. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 1207402f7683..08f384b0bd0d 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3590,6 +3590,7 @@