[f2fs-dev] [ANNOUNCE] New mailing list for fsverity development

2023-01-24 Thread Eric Biggers
Hi, fsverity development (both the kernel part and fsverity-utils) is now using the mailing list fsver...@lists.linux.dev instead of linux-fscr...@vger.kernel.org. linux-fscr...@vger.kernel.org is now for fscrypt only. When sending any fsverity-related patches, please always include the new

Re: [f2fs-dev] [PATCH 4/5] fs: hfs: initialize fsdata in hfs_file_truncate()

2023-01-24 Thread Andrew Morton
On Tue, 24 Jan 2023 11:51:30 +0100 Alexander Potapenko wrote: > On Mon, Nov 21, 2022 at 12:21 PM Alexander Potapenko > wrote: > > > > When aops->write_begin() does not initialize fsdata, KMSAN may report > > an error passing the latter to aops->write_end(). > > > > Fix this by unconditionally

[f2fs-dev] [PATCH 2/4] f2fs: introduce f2fs_set_compress_level()

2023-01-24 Thread Yangtao Li via Linux-f2fs-devel
f2fs_set_lz4hc_level() and f2fs_set_zstd_level() have common code, let's introduce f2fs_set_compress_level() to do sanity compress level check. Signed-off-by: Yangtao Li --- fs/f2fs/super.c | 57 +++-- 1 file changed, 17 insertions(+), 40 deletions(-)

[f2fs-dev] [PATCH 4/4] f2fs: merge lz4hc_compress_pages() to lz4_compress_pages()

2023-01-24 Thread Yangtao Li via Linux-f2fs-devel
Remove unnecessary lz4hc_compress_pages(). Signed-off-by: Yangtao Li --- fs/f2fs/compress.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index b196b881f3bb..112f0e208b4e 100644 --- a/fs/f2fs/compress.c +++

[f2fs-dev] [PATCH 3/4] f2fs: set default compress option only when sb_has_compression

2023-01-24 Thread Yangtao Li via Linux-f2fs-devel
If the compress feature is not enabled, there is no need to set compress-related parameters. Signed-off-by: Yangtao Li --- fs/f2fs/super.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index b5fbe9939390..68ccc9f54c2d 100644 ---

[f2fs-dev] [PATCH 1/4] f2fs: fix to check lz4hc compression when CONFIG_F2FS_FS_LZ4HC is not enabled

2023-01-24 Thread Yangtao Li via Linux-f2fs-devel
f2fs supports lz4 compression algorithm and lz4hc compression algorithm, which the level parameter needs to be passed in. When CONFIG_F2FS_FS_LZ4HC is not enabled, even if there is no problem with the level parameter, add the level parameter to the lz4 algorithm will cause the mount to fail.

Re: [f2fs-dev] [PATCH 4/5] fs: hfs: initialize fsdata in hfs_file_truncate()

2023-01-24 Thread Alexander Potapenko via Linux-f2fs-devel
On Mon, Nov 21, 2022 at 12:21 PM Alexander Potapenko wrote: > > When aops->write_begin() does not initialize fsdata, KMSAN may report > an error passing the latter to aops->write_end(). > > Fix this by unconditionally initializing fsdata. > > Suggested-by: Eric Biggers > Fixes: 1da177e4c3f4