[f2fs-dev] [PATCH] f2fs: merge FUA command with the existing writes

2025-09-04 Thread Jaegeuk Kim via Linux-f2fs-devel
FUA writes can be merged to the existing write IOs. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 7961e0ddfca3..30cb2f230690 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -733,9 +73

Re: [f2fs-dev] [PATCH v4] f2fs:fix missing space reclamation during the recovery process

2025-09-04 Thread Wang Xiaojun via Linux-f2fs-devel
Hi Chao, We previously thought that "triggering checkpoint for fsync after falloc -k" could solve this problem. But I found that the above method can be invalid in the following scenarios. case 1: write fileA 2M |  falloc -k 2M 100M | truncate 10M At this point, the file size is 10MB, while t

Re: [f2fs-dev] [PATCH v1] common/encrypt: Do not run _verify_ciphertext_for_encryption_policy on compressed FS

2025-09-04 Thread Eric Biggers via Linux-f2fs-devel
On Thu, Sep 04, 2025 at 10:54:49AM +0200, Jan Prusakowski wrote: > _verify_ciphertext_for_encryption_policy() checks if encryption works > correctly by reading encrypted file's contents directly from a block device > and > comparing it to a known good ciphertext. > > This, however, won't work if

[f2fs-dev] [PATCH v1] common/encrypt: Do not run _verify_ciphertext_for_encryption_policy on compressed FS

2025-09-04 Thread Jan Prusakowski via Linux-f2fs-devel
_verify_ciphertext_for_encryption_policy() checks if encryption works correctly by reading encrypted file's contents directly from a block device and comparing it to a known good ciphertext. This, however, won't work if the file systems is also compressed. So this patch disables tests using this f