[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2ce9821f-9059-4b2a-b9b7-880cece68e0d@linux.alibaba.com>
Date: Thu, 16 Jan 2025 16:45:57 +0800
From: Gao Xiang <hsiangkao@...ux.alibaba.com>
To: Chen Linxuan <chenlinxuan@...ontech.com>, Gao Xiang <xiang@...nel.org>,
Chao Yu <chao@...nel.org>, Yue Hu <zbestahu@...il.com>,
Jeffle Xu <jefflexu@...ux.alibaba.com>, Sandeep Dhavale <dhavale@...gle.com>
Cc: linux-erofs@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] erofs(shrinker): return SHRINK_EMPTY if no objects to
free
On 2025/1/16 16:33, Chen Linxuan wrote:
> Comments in file include/linux/shrinker.h says that
> `count_objects` of `struct shrinker` should return SHRINK_EMPTY
> when there are no objects to free.
>
>> 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).
>
> Signed-off-by: Chen Linxuan <chenlinxuan@...ontech.com>
Reviewed-by: Gao Xiang <hsiangkao@...ux.alibaba.com>
Thanks,
Gao Xiang
Powered by blists - more mailing lists