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

Johannes Weiner <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm
Message-ID <[email protected]>
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]>

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?

[ At the risk of starting something, should the file itself be
  renamed? swap_rw.c or swap_io.c or something. ]
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.