[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <19908a46-feaf-4bbb-b41c-ef5b7d72343a@redhat.com>
Date: Wed, 30 Apr 2025 23:11:03 +0200
From: David Hildenbrand <david@...hat.com>
To: Kairui Song <kasong@...cent.com>, linux-mm@...ck.org
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Matthew Wilcox <willy@...radead.org>, Hugh Dickins <hughd@...gle.com>,
Chris Li <chrisl@...nel.org>, Yosry Ahmed <yosryahmed@...gle.com>,
"Huang, Ying" <ying.huang@...ux.alibaba.com>, Nhat Pham <nphamcs@...il.com>,
Johannes Weiner <hannes@...xchg.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 5/6] mm: move folio_index to mm/swap.h and remove no
longer needed helper
On 30.04.25 20:10, Kairui Song wrote:
> From: Kairui Song <kasong@...cent.com>
>
> There are no remaining users of folio_index() outside the mm subsystem.
> Move it to mm/swap.h to co-locate it with swap_cache_index(), eliminating
> a forward declaration, and a function call overhead.
>
> Also remove the helper that was used to fix circular header dependency
> issue.
>
> Signed-off-by: Kairui Song <kasong@...cent.com>
> ---
> include/linux/pagemap.h | 20 --------------------
> mm/gup.c | 1 +
> mm/memfd.c | 1 +
> mm/migrate.c | 1 +
> mm/page-writeback.c | 1 +
> mm/swap.h | 18 ++++++++++++++++++
> mm/swapfile.c | 6 ------
> 7 files changed, 22 insertions(+), 26 deletions(-)
[...]
> bool isolate_movable_page(struct page *page, isolate_mode_t mode)
> {
> diff --git a/mm/page-writeback.c b/mm/page-writeback.c
> index 20e1d76f1eba..9ff44b64d3d6 100644
> --- a/mm/page-writeback.c
> +++ b/mm/page-writeback.c
> @@ -41,6 +41,7 @@
> #include <trace/events/writeback.h>
>
> #include "internal.h"
> +#include "swap.h"
I wonder if we should just have it in mm/internal.h instead?
In any case
Acked-by: David Hildenbrand <david@...hat.com>
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists