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

2025-08-17 Thread 王晓珺 via Linux-f2fs-devel
Hi Chao, The combination of truncate and falloc complicates the recovery process. For example, in the following scenario: write fileA 2M | fsync | truncate 256K | falloc -k 256K 1M | fsync A | SPO The falloc (256K, 1M) need to be recovered as pre-allocated space. But in the following scenarios,

Re: [f2fs-dev] [PATCH] f2fs: reduce nat_tree_lock hold time when flush nat entries

2025-08-17 Thread Zhiguo Niu
wangzijie 于2025年8月13日周三 12:06写道: > > Sometimes I suffered the nat_tree_lock contention between > f2fs_write_checkpoint > and f2fs_get_node_info. Commit a9419b6("f2fs: do not bother checkpoint by > f2fs_get_node_info") also mentioned that situation. > > My idea is, when flush nat entries, we can u

[f2fs-dev] [PATCH 1/2] f2fs: fix to avoid NULL pointer dereference in f2fs_check_quota_consistency()

2025-08-17 Thread Chao Yu via Linux-f2fs-devel
syzbot reported a f2fs bug as below: Oops: gen[ 107.736417][ T5848] Oops: general protection fault, probably for non-canonical address 0xdc00: [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x-0x0007] CPU: 1 UID: 0 PID: 5848 Comm: syz-executor263

[f2fs-dev] [PATCH 2/2] f2fs: fix to allow removing qf_name

2025-08-17 Thread Chao Yu via Linux-f2fs-devel
The mount behavior changed after commit d18535132523 ("f2fs: separate the options parsing and options checking"), let's fix it. [Scripts] mkfs.f2fs -f /dev/vdb mount -t f2fs -o usrquota /dev/vdb /mnt/f2fs quotacheck -uc /mnt/f2fs umount /mnt/f2fs mount -t f2fs -o usrjquota=aquota.user,jqfmt=vfsold

[f2fs-dev] [SPAM]

2025-08-17 Thread ABN AMRO Productinformatie via Linux-f2fs-devel
___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH v2] f2fs/012: adapt lookup_mode=x mount option

2025-08-17 Thread Zorro Lang via Linux-f2fs-devel
On Sat, Aug 16, 2025 at 03:29:09PM +0800, Chao Yu wrote: > w/ below change [1], f2fs will enable lookup_mode=perf by default, it > will change f2fs dirent lookup method from linear based lookup to hash > based lookup. > > So that, f2fs will ignore sb.s_encoding_flags by default, which is not > com