[f2fs-dev] [PATCH v3] f2fs: add async reset zone command support

2023-04-27 Thread Daejun Park
Changelog: v2 -> v3 Modified arguments to be correct for ftrace parameter. Changed __submit_zone_reset_cmd to void return. Refactored the f2fs_wait_discard_bio function. Fixed code that was previously incorrectly merged. v1 -> v2 Changed to apply the optional async reset write pointer by

Re: [f2fs-dev] [PATCH v2] f2fs: do not allow to defragment files have FI_COMPRESS_RELEASED

2023-04-27 Thread Chao Yu
On 2023/4/28 0:21, Jaegeuk Kim wrote: On 04/27, Chao Yu wrote: On 2023/4/26 0:47, Yangtao Li wrote: If a file has FI_COMPRESS_RELEASED, all writes for it should not be allowed. Fixes: 5fdb322ff2c2 ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE") Signed-off-by: Qi Han

Re: [f2fs-dev] [PATCH] f2fs: remove some dead code

2023-04-27 Thread Chao Yu
On 2023/4/28 0:28, Jaegeuk Kim wrote: On 04/18, Dan Carpenter wrote: On Mon, Apr 17, 2023 at 10:51:46PM +0200, Christophe JAILLET wrote: - ret2 = filemap_check_errors(NODE_MAPPING(sbi)); - if (!ret) - ret = ret2; + ret = filemap_check_errors(NODE_MAPPING(sbi));

Re: [f2fs-dev] [PATCH] f2fs: remove some dead code

2023-04-27 Thread Jaegeuk Kim
On 04/18, Dan Carpenter wrote: > On Mon, Apr 17, 2023 at 10:51:46PM +0200, Christophe JAILLET wrote: > > > > - ret2 = filemap_check_errors(NODE_MAPPING(sbi)); > > - if (!ret) > > - ret = ret2; > > + ret = filemap_check_errors(NODE_MAPPING(sbi)); > > > > return ret; > >

Re: [f2fs-dev] [PATCH v2] f2fs: do not allow to defragment files have FI_COMPRESS_RELEASED

2023-04-27 Thread Jaegeuk Kim
On 04/27, Chao Yu wrote: > On 2023/4/26 0:47, Yangtao Li wrote: > > If a file has FI_COMPRESS_RELEASED, all writes for it should not be > > allowed. > > > > Fixes: 5fdb322ff2c2 ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and > > F2FS_IOC_COMPRESS_FILE") > > Signed-off-by: Qi Han > > Signed-off-by:

Re: [f2fs-dev] [PATCH v3] f2fs: refactor struct f2fs_attr macro

2023-04-27 Thread Chao Yu
On 2023/4/26 0:19, Yangtao Li wrote: This patch provides a large number of variants of F2FS_RW_ATTR and F2FS_RO_ATTR macros, reducing the number of parameters required to initialize the f2fs_attr structure. Reported-by: kernel test robot Link:

Re: [f2fs-dev] [PATCH v2] f2fs: do not allow to defragment files have FI_COMPRESS_RELEASED

2023-04-27 Thread Chao Yu
On 2023/4/26 0:47, Yangtao Li wrote: If a file has FI_COMPRESS_RELEASED, all writes for it should not be allowed. Fixes: 5fdb322ff2c2 ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE") Signed-off-by: Qi Han Signed-off-by: Yangtao Li Oh, I just see v2. Reviewed-by: Chao Yu

Re: [f2fs-dev] [PATCH v2] f2fs: add sanity check for proc_mkdir

2023-04-27 Thread Chao Yu
On 2023/4/26 0:06, Yangtao Li wrote: Return -ENOMEM when proc_mkdir failed. Signed-off-by: Yangtao Li Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net

Re: [f2fs-dev] [PATCH] f2fs: do not allow to defragment files have FI_COMPRESS_RELEASED

2023-04-27 Thread Chao Yu
On 2023/4/25 23:11, Yangtao Li wrote: If a file has FI_COMPRESS_RELEASED, all writes for it should not be allowed. Fixes: 5fdb322ff2c2 ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE") Signed-off-by: Qi Han Signed-off-by: Yangtao Li --- fs/f2fs/file.c | 3 +++ 1 file