Re: [f2fs-dev] [PATCH v3 03/12] f2fs: cache: introduce shrinker
From: Chao Yu
Date: Thu Aug 27 2026 - 22:00:43 EST
On 8/28/26 01:00, Daeho Jeong wrote:
>>>> + /* Phase 1: Isolate candidate entries from LRU list into dispose_list */
>>>> + spin_lock(&cache->list_lock);
>>>> + list_for_each_entry_safe(entry, next, &cache->lru_list, list) {
>>>> + if (isolated++ >= nr_to_scan)
>>>
>>> scanned?
>>
>> Okay, will clean.
Will change like this:
if (scanned >= cache->num_entries)
break;
if (scanned++ >= nr_to_scan)
break;