Re: [PATCH v4 3/3] mm: move reclaim-internal declarations out of swap.h

From: Johannes Weiner

Date: Wed Jun 03 2026 - 11:16:02 EST


On Wed, Jun 03, 2026 at 09:05:34PM +0800, Jianyue Wu wrote:
> Keep include/linux/swap.h focused on swap-facing interfaces by moving
> MM-internal reclaim and workingset declarations into mm/internal.h.
>
> Leave the small set of LRU helper declarations that are used outside mm/
> in swap.h so this cleanup does not need a new public header under
> include/linux/.
>
> Suggested-by: Barry Song <baohua@xxxxxxxxxx>
> Suggested-by: Baoquan He <bhe@xxxxxxxxxx>
> Signed-off-by: Jianyue Wu <wujianyue000@xxxxxxxxx>

Nice cleanup, LGTM.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>