[f2fs-dev] [PATCH v2] f2fs: compress: avoid unnecessary check in f2fs_prepare_compress_overwrite

2021-04-27 Thread Fengnan Chang
when write compressed file with O_TRUNC, there will be a lot of unnecessary check valid blocks in f2fs_prepare_compress_overwrite, especially when written in page size, remove it. Signed-off-by: Fengnan Chang --- fs/f2fs/data.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/f2fs/da

Re: [f2fs-dev] [GIT PULL][PATCH v10 0/4] Update to zstd-1.4.10

2021-04-27 Thread Nick Terrell via Linux-f2fs-devel
> On Apr 27, 2021, at 3:09 PM, Randy Dunlap wrote: > > On 4/26/21 4:46 PM, Nick Terrell wrote: >> From: Nick Terrell >> >> Please pull from >> >> g...@github.com:terrelln/linux.git tags/v10-zstd-1.4.10 >> >> to get these changes. Alternatively the patchset is included. >> >> This patchset

Re: [f2fs-dev] [GIT PULL][PATCH v10 0/4] Update to zstd-1.4.10

2021-04-27 Thread Randy Dunlap
On 4/26/21 4:46 PM, Nick Terrell wrote: > From: Nick Terrell > > Please pull from > > g...@github.com:terrelln/linux.git tags/v10-zstd-1.4.10 > > to get these changes. Alternatively the patchset is included. > > This patchset lists me as the maintainer for zstd and upgrades the zstd > libra

Re: [f2fs-dev] [PATCH v8 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-04-27 Thread Gabriel Krisman Bertazi
"Theodore Ts'o" writes: > On Tue, Apr 27, 2021 at 03:39:15PM +0530, Shreeya Patel wrote: >> > > Hence, make UTF-8 encoding loadable by converting it into a module and >> > > also add built-in UTF-8 support option for compiling it into the >> > > kernel whenever required by the filesystem. >> > Th

Re: [f2fs-dev] [PATCH v8 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-04-27 Thread Theodore Ts'o
On Tue, Apr 27, 2021 at 03:39:15PM +0530, Shreeya Patel wrote: > > > Hence, make UTF-8 encoding loadable by converting it into a module and > > > also add built-in UTF-8 support option for compiling it into the > > > kernel whenever required by the filesystem. > > The way this is implemement looks

[f2fs-dev] 答复: [PATCH] f2fs: add no compress extensions support

2021-04-27 Thread changfengnan
The modification in set_compress_inode is not unrelated. When a directory is compressed, the file below is compressed too, the modification is try to deal with this. -邮件原件- 发件人: Chao Yu 发送时间: 2021年4月27日 20:29 收件人: Fengnan Chang ; jaeg...@kernel.org; c...@kernel.org; linux-f2fs-devel@lis

Re: [f2fs-dev] [PATCH] f2fs: compress: avoid unnecessary check in f2fs_prepare_compress_overwrite

2021-04-27 Thread Chao Yu
On 2021/4/26 10:11, Fengnan Chang wrote: when write compressed file with O_TRUNC, there will be a lot of unnecessary check valid blocks in f2fs_prepare_compress_overwrite, especially when written in page size, remove it. Signed-off-by: Fengnan Chang --- fs/f2fs/data.c | 4 1 file change

Re: [f2fs-dev] [PATCH] f2fs: reset free segment to prefree status when do_checkpoint() fail

2021-04-27 Thread Chao Yu
On 2021/4/27 16:21, Yangtao Li wrote: When do_checkpoint() fails, the prefree bitmap is not cleared, but these segments are already in the free state. If these segments are used, the segments in use will be reset to the free state when f2fs_clear_prefree_segments is called next time. So reset fr

Re: [f2fs-dev] [PATCH] f2fs: add no compress extensions support

2021-04-27 Thread Chao Yu
On 2021/4/22 19:25, Fengnan Chang wrote: When we create a directory with enable compression, all file write into directory will try to compress.But sometimes we may know, new file cannot meet compression ratio requirements. We need a nocompress extension to skip those files to avoid unnecessary c

Re: [f2fs-dev] [PATCH v8 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-04-27 Thread Shreeya Patel
On 27/04/21 11:59 am, Christoph Hellwig wrote: On Sat, Apr 24, 2021 at 02:21:36AM +0530, Shreeya Patel wrote: utf8data.h_shipped has a large database table which is an auto-generated decodification trie for the unicode normalization functions. We can avoid carrying this large table in the kern

[f2fs-dev] [PATCH] f2fs: reset free segment to prefree status when do_checkpoint() fail

2021-04-27 Thread Yangtao Li
When do_checkpoint() fails, the prefree bitmap is not cleared, but these segments are already in the free state. If these segments are used, the segments in use will be reset to the free state when f2fs_clear_prefree_segments is called next time. So reset free segments to prefree status when do_ch