Re: [PATCH] f2fs: compress: fix to disallow enabling compress on non-empty file

2020-09-24 Thread Chao Yu
On 2020/9/25 4:03, Jaegeuk Kim wrote: On 09/18, Chao Yu wrote: Compressed inode and normal inode has different layout, so we should disallow enabling compress on non-empty file to avoid race condition during inode .i_addr array parsing and updating. Signed-off-by: Chao Yu --- fs/f2fs/file.c

Re: [PATCH] f2fs: compress: fix to disallow enabling compress on non-empty file

2020-09-24 Thread Jaegeuk Kim
On 09/18, Chao Yu wrote: > Compressed inode and normal inode has different layout, so we should > disallow enabling compress on non-empty file to avoid race condition > during inode .i_addr array parsing and updating. > > Signed-off-by: Chao Yu > --- > fs/f2fs/file.c | 2 ++ > 1 file changed, 2

[PATCH] f2fs: compress: fix to disallow enabling compress on non-empty file

2020-09-17 Thread Chao Yu
Compressed inode and normal inode has different layout, so we should disallow enabling compress on non-empty file to avoid race condition during inode .i_addr array parsing and updating. Signed-off-by: Chao Yu --- fs/f2fs/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/file.