Re: [PATCH 1/4] numa: generalize numa_map_to_online_node()

From: Andy Shevchenko
Date: Fri Aug 11 2023 - 04:49:08 EST


On Thu, Aug 10, 2023 at 09:24:39AM -0700, Yury Norov wrote:
> The function is in fact searches for the nearest node for a given one,
> based on a N_ONLINE state. This is a common pattern to search for a
> nearest node.
>
> This patch converts numa_map_to_online_node(node) to
> numa_nearest_node(node, state), so that others won't need opencode the
> logic.

> The following patches apply it where applicable.

Doesn't sound like should be part of the commit message.

--
With Best Regards,
Andy Shevchenko