[f2fs-dev] [PATCH] f2fs: don't set FI_COMPRESS_RELEASED if file is not compressed

2022-12-07 Thread zhoudan8
In compress_mode=user, f2fs_release_compress_blocks() does not verify whether it has been compressed and sets FI_COMPRESS_RELEASED directly. which will lead to return -EINVAL after calling compress. To fix it,let's do not set FI_COMPRESS_RELEASED if file is not compressed. Signed-off-by: zhoudan

[f2fs-dev] [PATCH] fsverity: mark builtin signatures as deprecated

2022-12-07 Thread Eric Biggers
From: Eric Biggers fsverity builtin signatures, at least as currently implemented, are a mistake and should not be used. They mix the authentication policy between the kernel and userspace, which is not a clean design and causes confusion. For builtin signatures to actually provide any security

[f2fs-dev] [PATCH] fsverity: don't check builtin signatures when require_signatures=0

2022-12-07 Thread Eric Biggers
From: Eric Biggers An issue that arises when migrating from builtin signatures to userspace signatures is that existing files that have builtin signatures cannot be opened unless either CONFIG_FS_VERITY_BUILTIN_SIGNATURES is disabled or the signing certificate is left in the .fs-verity keyring.

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2022-12-07 Thread Luis Chamberlain
On Wed, Nov 30, 2022 at 03:18:41PM +, Matthew Wilcox wrote: > On Wed, Nov 30, 2022 at 08:48:04PM +0800, Yangtao Li wrote: > > Hi, > > > > > Thanks for reviewing this. I think the real solution to this is > > > that f2fs should be using large folios. That way, the page cache > > > will keep t

[f2fs-dev] [PATCH] f2fs: Fix spelling mistake in label: free_bio_enrty_cache -> free_bio_entry_cache

2022-12-07 Thread Colin Ian King
There is a spelling mistake in a label name. Fix it. Signed-off-by: Colin Ian King --- fs/f2fs/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 79bf1faf4161..7a9fa1a5baa2 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@