Skip to content

mm/swap: use swap_ops to register swap device's methods

Barry Song linux-mm lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 11 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/swap: rename mm/page_io.c to mm/swap_io.cMAINTAINERS mm/Makefile mm/swap.h +1 more+3 -51 reply
2/3mm/swap: use swap_ops to register swap device's methodsinclude/linux/swap.h mm/swap.h mm/swap_io.c +2 more+70 -458 replies
3/3mm/swap_io.c: rename swap_writepage_* to swap_write_folio_*mm/swap_io.c+6 -61 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchNhat PhamBarry SongKairui SongChris Li
1/3R-b R-b A-b A-b
2/3
3/3R-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] mm/swap: use swap_ops to register swap device's methods

From: Barry Song <[email protected]>

-v2:
* lots of cleanup for patch 2/3: renaming, moving data structures, and using const properly
* collected tags from Kairui, Nhat and Barry

-v1:
https://lore.kernel.org/linux-mm/[email protected]/

This can simplify the code logic and benefit any new type of swap device added later.

And also do renaming in this patchset:
-------
file renaming:
---
mm/page_io.c to mm/swap_io.c

function renaming:
---
swap_writepage_* to swap_write_folio_* in file mm/swap_io.c

Baoquan He (3):
mm/swap: rename mm/page_io.c to mm/swap_io.c mm/swap: use swap_ops to register swap device's methods mm/swap_io.c: rename swap_writepage_* to swap_write_folio_*

 MAINTAINERS                 |   2 +-
 include/linux/swap.h        |   2 +
 mm/Makefile                 |   2 +-
 mm/swap.h                   |  12 ++++-
 mm/{page_io.c => swap_io.c} | 101 ++++++++++++++++++++----------------
 mm/swapfile.c               |   1 +
 mm/zswap.c                  |   3 +-
 7 files changed, 73 insertions(+), 50 deletions(-)
 rename mm/{page_io.c => swap_io.c} (89%)
Signature · 1 line
2.39.3 (Apple Git-146)