Re: [PATCH 6/6] mm/swap: rename __swap_writepage() to __swap_writeout()

Tal Zussman <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm
Message-ID <[email protected]>
On 8/7/26 1:01 PM, Johannes Weiner wrote:
> On Thu, Aug 06, 2026 at 06:55:38PM -0400, Tal Zussman wrote:
>> Commit 84798514db50 ("mm: Remove swap_writepage() and
>> shmem_writepage()") renamed swap_writepage() to swap_writeout().  Rename
>> __swap_writepage(), which operates on a folio, to match its caller.
>> Update a stale reference to swap_writepage() in swapfile.c as well.
>> 
>> Signed-off-by: Tal Zussman <[email protected]>
> 

Thanks for the reviews!

> Looking at that commit, I can only guess that pageout() had an
> influence on the swap_writeout() name.
> 
> However, on the read side of the page_io.c API, we're following
> swap_read_folio* consistently.
> 
> [__]swap_write_folio* would seem more symmetrical?
> 

That sounds reasonable, will change it.

> [ At the risk of starting something, should the file itself be
>    renamed? swap_rw.c or swap_io.c or something. ]
> 

You said it, not me... :)
I like swap_io.c - happy to stick a patch at the beginning renaming it
if there are no objections.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.