[f2fs-dev] Silikonmischungen

2023-01-12 Thread Zbynek Spacek via Linux-f2fs-devel
Good morning, do you need intermediates for processing, plastics (e.g. rubber) or silicone mixtures? We provide a wide range of silicone rubbers with various properties, silicone mixtures from renowned manufacturers such as Wacker, Elastosil LR and dyes, stabilizers, primers and anti-adhesive

Re: [f2fs-dev] [PATCH v2] f2fs: retry to update the inode page given EIO

2023-01-12 Thread Chao Yu
On 2023/1/12 2:50, Jaegeuk Kim wrote: On 01/11, Chao Yu wrote: On 2023/1/11 9:20, Jaegeuk Kim wrote: In f2fs_update_inode_page, f2fs_get_node_page handles EIO along with f2fs_handle_page_eio that stops checkpoint, if the disk couldn't be recovered. As a result, we don't need to stop checkpoint

Re: [f2fs-dev] [PATCH v5 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()

2023-01-12 Thread Chao Yu
On 2023/1/5 5:14, Vishal Moola (Oracle) wrote: Converted the function to use a folio_batch instead of pagevec. This is in preparation for the removal of find_get_pages_range_tag(). Also modified f2fs_all_cluster_page_ready to take in a folio_batch instead of pagevec. This does NOT support large

[f2fs-dev] [PATCH 2/3] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION_V2 ioctl

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
Added a new F2FS_IOC_SET_COMPRESS_OPTION_V2 ioctl to change file compression option of a file. struct f2fs_comp_option_v2 { union { struct { __u8 algorithm; __u8 log_cluster_size; __u16 compress_flag;

[f2fs-dev] [PATCH 1/3] f2fs: clarify compress level bit offset

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
commit 3fde13f817e2 ("f2fs: compress: support compress level") introduce compress level, which macro(COMPRESS_LEVEL_OFFSET) is 8, But use wrong comment about compress level. Let's fix it. Signed-off-by: Yangtao Li --- include/linux/f2fs_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[f2fs-dev] [PATCH 3/3] f2fs: add F2FS_IOC_GET_COMPRESS_OPTION_V2 ioctl

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
Added a new F2FS_IOC_GET_COMPRESS_OPTION_V2 ioctl to get file compression option of a file. struct f2fs_comp_option_v2 { union { struct { __u8 algorithm; __u8 log_cluster_size; __u16 compress_flag;

[f2fs-dev] [PATCH] f2fs: introduce sanity_check_blocks()

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
There are very similar codes in release_compress_blocks() and reserve_compress_blocks() which is used for data blocks check. This patch introduces a new helper sanity_check_blocks() to include those common codes, and used it instead for cleanup. Signed-off-by: Yangtao Li --- fs/f2fs/file.c | 36

[f2fs-dev] [PATCH] f2fs: convert is_extension_exist() to return bool type

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
is_extension_exist() only return two values, 0 or 1. So there is no need to use int type. Signed-off-by: Yangtao Li --- fs/f2fs/namei.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 6032589099ce..516968cbc6d6 100644 --- a

Re: [f2fs-dev] [PATCH] f2fs: drop useless initializer and unneeded local variable

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
> exceed 80 column? I use the checkpatch.pl script to check that there are no errors. Earlier, the default line length was 80 columns. Commit bdc48fa11e46 (???checkpatch/coding-style: deprecate 80-column warning???) increased the limit to 100 columns. $ ./scripts/checkpatch.pl 0001-f2fs-drop-u

[f2fs-dev] [PATCH v4] f2fs: introduce discard_io_aware_gran sysfs node

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
The current discard_io_aware_gran is a fixed value, change it to be configurable through the sys node. Signed-off-by: Yangtao Li --- v4:update description Documentation/ABI/testing/sysfs-fs-f2fs | 10 ++ fs/f2fs/f2fs.h | 1 + fs/f2fs/segment.c

Re: [f2fs-dev] [PATCH 1/4] f2fs: reset iostat_count in f2fs_reset_iostat()

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
Dear Jaegeuk, > Hi Yangtao, > > These are all in dev-test branch, which means you don't need to stack up more > patches on top of it. I just integrated most of them into two original > patches. Ok, I'll merge the previous commits and resend next time. > Could you please take a look at this? L

Re: [f2fs-dev] [PATCH v5 10/23] ext4: Convert mpage_prepare_extent_to_map() to use filemap_get_folios_tag()

2023-01-12 Thread Vishal Moola
On Wed, Jan 4, 2023 at 1:15 PM Vishal Moola (Oracle) wrote: > > Converted the function to use folios throughout. This is in preparation > for the removal of find_get_pages_range_tag(). Now supports large > folios. This change removes 11 calls to compound_head(). > > Signed-off-by: Vishal Moola (Or

Re: [f2fs-dev] [PATCH v5 09/23] cifs: Convert wdata_alloc_and_fillpages() to use filemap_get_folios_tag()

2023-01-12 Thread Vishal Moola
On Wed, Jan 4, 2023 at 1:15 PM Vishal Moola (Oracle) wrote: > > This is in preparation for the removal of find_get_pages_range_tag(). Now also > supports the use of large folios. > > Since tofind might be larger than the max number of folios in a > folio_batch (15), we loop through filling in wdat

[f2fs-dev] [PATCH] f2fs: return true if all cmd were issued or no cmd need to be issued for f2fs_issue_discard_timeout()

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
f2fs_issue_discard_timeout() returns whether discard cmds are dropped, which does not match the meaning of the function. Let's change it to return whether all discard cmd are issued. After commit 4d67490498ac ("f2fs: Don't create discard thread when device doesn't support realtime discard"), f2fs_

Re: [f2fs-dev] [PATCH v5 09/23] cifs: Convert wdata_alloc_and_fillpages() to use filemap_get_folios_tag()

2023-01-12 Thread Paulo Alcantara via Linux-f2fs-devel
"Vishal Moola (Oracle)" writes: > This is in preparation for the removal of find_get_pages_range_tag(). Now also > supports the use of large folios. > > Since tofind might be larger than the max number of folios in a > folio_batch (15), we loop through filling in wdata->pages pulling more > batch

[f2fs-dev] [PATCH] f2fs: add compression feature check for all compress mount opt

2023-01-12 Thread Yangtao Li via Linux-f2fs-devel
Opt_compress_chksum, Opt_compress_mode and Opt_compress_cache lack the necessary check to see if the image supports compression, let's add it. Signed-off-by: Yangtao Li --- fs/f2fs/super.c | 55 + 1 file changed, 28 insertions(+), 27 deletions(-)

Re: [f2fs-dev] [PATCH 1/4] f2fs: reset iostat_count in f2fs_reset_iostat()

2023-01-12 Thread Jaegeuk Kim
On 01/12, Yangtao Li wrote: > Dear Jaegeuk, > > > Hi Yangtao, > > > > These are all in dev-test branch, which means you don't need to stack up > > more > > patches on top of it. I just integrated most of them into two original > > patches. > > Ok, I'll merge the previous commits and resend nex

Re: [f2fs-dev] [PATCH v2] f2fs: retry to update the inode page given EIO

2023-01-12 Thread Jaegeuk Kim
On 01/12, Chao Yu wrote: > On 2023/1/12 2:50, Jaegeuk Kim wrote: > > On 01/11, Chao Yu wrote: > > > On 2023/1/11 9:20, Jaegeuk Kim wrote: > > > > In f2fs_update_inode_page, f2fs_get_node_page handles EIO along with > > > > f2fs_handle_page_eio that stops checkpoint, if the disk couldn't be > > > >

[f2fs-dev] [PATCH] f2fs: synchronize atomic write aborts

2023-01-12 Thread Daeho Jeong
From: Daeho Jeong To fix a race condition between atomic write aborts, I use the inode lock and make COW inode to be re-usable thoroughout the whole atomic file inode lifetime. Reported-by: syzbot+823000d23b3400619...@syzkaller.appspotmail.com Fixes: 3db1de0e582c ("f2fs: change the current atomi