From: Baoquan He <baoquan.he@linux.dev>
To: Matthew Wilcox <willy@infradead.org>
Cc: Jianyue Wu <wujianyue000@gmail.com>,
Tal Zussman <tz2294@columbia.edu>,
Andrew Morton <akpm@linux-foundation.org>,
Chris Li <chrisl@kernel.org>, Kairui Song <kasong@tencent.com>,
Kemeng Shi <shikemeng@huaweicloud.com>,
Nhat Pham <nphamcs@gmail.com>, Baoquan He <bhe@redhat.com>,
Barry Song <baohua@kernel.org>,
Youngjun Park <youngjun.park@lge.com>,
Qi Zheng <qi.zheng@linux.dev>,
Shakeel Butt <shakeel.butt@linux.dev>,
Axel Rasmussen <axelrasmussen@google.com>,
Yuanchu Xie <yuanchu@google.com>, Wei Xu <weixugc@google.com>,
Johannes Weiner <hannes@cmpxchg.org>,
David Hildenbrand <david@kernel.org>,
Michal Hocko <mhocko@kernel.org>,
Lorenzo Stoakes <ljs@kernel.org>,
"Liam R. Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@kernel.org>,
Mike Rapoport <rppt@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
Michal Hocko <mhocko@suse.com>, Hugh Dickins <hughd@google.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/3] mm: move folio LRU code out of swap
Date: Wed, 3 Jun 2026 18:49:16 +0800 [thread overview]
Message-ID: <aiAGrJsNm_uAf1qu@MiWiFi-R3L-srv> (raw)
In-Reply-To: <ah79c9IIuXt51ybs@casper.infradead.org>
On 06/02/26 at 04:57pm, Matthew Wilcox wrote:
> On Tue, Jun 02, 2026 at 09:01:16AM +0800, Jianyue Wu wrote:
> > Rename mm/swap.c to mm/folio_lru.c so the filename better matches
> > the code's main responsibility.
> >
> > This keeps the implementation split from swap-specific code without
> > changing the published LRU helper interfaces.
>
> At the same time, we have Tal trying to split folio_wait.c out
> of filemap.c. https://lore.kernel.org/linux-mm/20260520-filemap-split-v1-0-c36ddc2b6cf2@columbia.edu/
>
> I wonder if instead of folio_lru.c and folio_wait.c, we shouldn't simply
> have folio.c. Tal has 700 lines in his diffstat, you'll have about 1100
> lines, so that's about 1800 llines which seems like a good size.
> There's some functions from mm/util.c that would fit nicely too --
> folio_mapping(), folio_anon_vma(), folio_copy(), flush_dcache_folio()
I think folio_lru.c and folio_wait.c are better than a single folio.c.
A single folio.c with all of them would have no clear boundary for what
belongs there and what doesn't. For comparison, page_alloc.c isn't called
page.c (we have files called mm/page*.c).
>
> Other people have thoughts?
>
next prev parent reply other threads:[~2026-06-03 10:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 1:01 [PATCH v3 0/3] mm: clean up folio LRU and swap declarations Jianyue Wu
2026-06-02 1:01 ` [PATCH v3 1/3] mm/swap: colocate page-cluster sysctl with swap readahead Jianyue Wu
2026-06-02 1:01 ` [PATCH v3 2/3] mm: move folio LRU code out of swap Jianyue Wu
2026-06-02 11:28 ` Baoquan He
2026-06-02 13:38 ` Jianyue Wu
2026-06-02 15:57 ` Matthew Wilcox
2026-06-03 10:49 ` Baoquan He [this message]
2026-06-03 12:03 ` Lorenzo Stoakes
2026-06-03 12:29 ` Jianyue Wu
2026-06-03 12:40 ` Lorenzo Stoakes
2026-06-03 12:43 ` Lorenzo Stoakes
2026-06-02 1:01 ` [PATCH v3 3/3] mm: move reclaim-internal declarations out of swap.h Jianyue Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aiAGrJsNm_uAf1qu@MiWiFi-R3L-srv \
--to=baoquan.he@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=axelrasmussen@google.com \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=bhe@redhat.com \
--cc=chrisl@kernel.org \
--cc=david@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=hughd@google.com \
--cc=kasong@tencent.com \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@kernel.org \
--cc=mhocko@suse.com \
--cc=nphamcs@gmail.com \
--cc=qi.zheng@linux.dev \
--cc=rppt@kernel.org \
--cc=shakeel.butt@linux.dev \
--cc=shikemeng@huaweicloud.com \
--cc=surenb@google.com \
--cc=tz2294@columbia.edu \
--cc=vbabka@kernel.org \
--cc=weixugc@google.com \
--cc=willy@infradead.org \
--cc=wujianyue000@gmail.com \
--cc=youngjun.park@lge.com \
--cc=yuanchu@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox