Re: [PATCH 2/2] mm: zpool: return pool size in pages

From: Nhat Pham
Date: Tue Mar 12 2024 - 05:16:35 EST


On Mon, Mar 11, 2024 at 11:12 PM Johannes Weiner <hannes@xxxxxxxxxxx> wrote:
>
> All zswap backends track their pool sizes in pages. Currently they
> multiply by PAGE_SIZE for zswap, only for zswap to divide again in
> order to do limit math. Report pages directly.

I've always found this to be weird. Perhaps the original author of
this API wants to support more fine-grained memory consumption
tracking?

>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>

Anyway, let's just work with realities, rather than hypotheticals :)
With the renaming fixlet:
Reviewed-by: Nhat Pham <nphamcs@xxxxxxxxx>