[PATCH v2] erofs(shrinker): return SHRINK_EMPTY if no objects to free
Gao Xiang
hsiangkao at linux.alibaba.com
Thu Jan 16 19:45:57 AEDT 2025
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 at uniontech.com>
Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list