Re: [PATCH v2] zsmalloc: prefer the the original page's node for compressed data
From: Nhat Pham
Date: Wed Apr 02 2025 - 17:51:50 EST
On Wed, Apr 2, 2025 at 2:41 PM Dan Williams <dan.j.williams@xxxxxxxxx> wrote>
>
> Why do the work to pass in @nid only to hardcode 0 to
> alloc_pages_node()?
That 0 is the order, i.e we want a single page here :)
The node id is the first argument of alloc_pages_node. I made the same
mistake in one of the earlier versions of this patch series (which,
fortunately I did not send out) - hopefully this time I'm correct :)