Re: [RFC PATCH 0/2] mm: zsmalloc: make shrinker compaction budget-aware

From: Sergey Senozhatsky

Date: Tue Nov 17 2026 - 21:25:26 EST


On (26/11/18 00:27), Chris Wiseman wrote:
> Nhat / Johannes / Sergey - good with a 2-patch series that just removes
> the zsmalloc shrinker and adds the unlocked zs_can_compact() pre-check
> for manual zram compaction?

If there is no shrinker now then does unlocked zs_can_compact() matter
that much? I assume zs_can_compact() is now called only from external
code, so it's not expected to be executed nearly as often as before, or
is there some other reason to make it unlocked?