Re: [PATCH 7/7] mm/page_alloc: Replace local_lock with normal spinlock
From: Yu Zhao
Date: Fri Jun 24 2022 - 15:00:14 EST
On Fri, Jun 24, 2022 at 6:55 AM Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> wrote:
...
> +#define pcp_spin_trylock_irqsave(ptr, flags) \
> + pcpu_spin_trylock_irqsave(struct per_cpu_pages, lock, ptr, flags)
> +
...
> + pcp = pcpu_spin_trylock_irqsave(struct per_cpu_pages, lock, zone->per_cpu_pageset, flags);
Why pcp_spin_trylock_irqsave() was added earlier but not used later?