[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5a1b2716-bcc4-4a5e-95ce-ba45f508738d@kernel.org>
Date: Mon, 10 Feb 2025 18:05:58 +0800
From: Chao Yu <chao@...nel.org>
To: Zhiguo Niu <zhiguo.niu@...soc.com>, jaegeuk@...nel.org
Cc: chao@...nel.org, linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org, niuzhiguo84@...il.com, ke.wang@...soc.com,
Hao_hao.Wang@...soc.com
Subject: Re: [PATCH] f2fs: fix to return SHRINK_EMPTY if no objects to free
On 2/10/25 09:24, Zhiguo Niu wrote:
> Quoted from include/linux/shrinker.h
> "count_objects should return the number of freeable items in the cache. If
> there are no objects to free, it should return SHRINK_EMPTY, while 0 is
> returned in cases of the number of freeable items cannot be determined
> or shrinker should skip this cache for this time (e.g., their number
> is below shrinkable limit)."
Seems in 9b996468cfdb ("mm: add SHRINK_EMPTY shrinker methods return
value"), it didn't convert most of filesystems, left most filesystems
to return 0 which indicate there may have objects to free. :(
>
> Signed-off-by: Zhiguo Niu <zhiguo.niu@...soc.com>
Reviewed-by: Chao Yu <chao@...nel.org>
Thanks,
Powered by blists - more mailing lists