[f2fs-dev] [PATCH v3 2/2] f2fs: directly add newly allocated pre-dirty nat entry to dirty set list

2025-07-27 Thread wangzijie
When we need to alloc nat entry and set it dirty, we can directly add it to dirty set list(or initialize its list_head for new_ne) instead of adding it to clean list and make a move. Introduce init_dirty flag to do it. Signed-off-by: wangzijie --- v3: - followed by Chao's suggestion to clean up c

[f2fs-dev] [PATCH v3 1/2] f2fs: avoid redundant clean nat entry move in lru list

2025-07-27 Thread wangzijie
__lookup_nat_cache follows LRU manner to move clean nat entry, when nat entries are going to be dirty, no need to move them to tail of lru list. Introduce a parameter 'for_dirty' to avoid it. Signed-off-by: wangzijie --- v3: - followed by Chao's suggestion to update comments v2: - followed by Jae

Re: [f2fs-dev] [PATCH v3] mkfs.f2fs: support -C [no]hashonly to control linear lookup fallback

2025-07-27 Thread Zhiguo Niu
Hi Chao Chao Yu via Linux-f2fs-devel 于2025年7月25日周五 13:51写道: > > It provides a way to disable linear lookup fallback during mkfs. > > Behavior summary: > Android Distro > By default disabledenabled > > Android case: > > 1.1) Disable linear looku

Re: [f2fs-dev] [PATCH v3] mkfs.f2fs: support -C [no]hashonly to control linear lookup fallback

2025-07-27 Thread Chao Yu via Linux-f2fs-devel
On 7/28/25 09:05, Zhiguo Niu wrote: > Hi Chao > > Chao Yu via Linux-f2fs-devel > 于2025年7月25日周五 13:51写道: >> >> It provides a way to disable linear lookup fallback during mkfs. >> >> Behavior summary: >> Android Distro >> By default disabledenabl

[f2fs-dev] [PATCH v4] mkfs.f2fs: support -C [no]hashonly to control linear lookup fallback

2025-07-27 Thread Chao Yu via Linux-f2fs-devel
It provides a way to disable linear lookup fallback during mkfs. Behavior summary: Android Distro By default disabledenabled Android case: 1.1) Disable linear lookup: - mkfs.f2fs -f -g android -O casefold -C utf8:hashonly /dev/vdb - dump.f2fs