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

From: Yosry Ahmed
Date: Mon Mar 11 2024 - 18:12:15 EST


On Mon, Mar 11, 2024 at 12:12:14PM -0400, Johannes Weiner 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.

Nice. Although I would prefer renaming the zpool interface to
total_pages and renaming the zpool backends functions as well to use
pages rather than size.

Either way:
Acked-by: Yosry Ahmed <yosryahmed@xxxxxxxxxx>