Skip to content

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

Baoquan He linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 21 repliesIn review

Patches in v1 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+4 -45 replies
2/3mm/swap: use swap_ops to register swap device's methodsinclude/linux/swap.h mm/swap.h mm/swap_io.c +2 more+76 -4511 replies
3/3mm/swap_io.c: rename swap_writepage_* to swap_write_folio_*mm/swap_io.c+6 -62 replies

Reviews trailers per patch

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

PatchBarry SongNhat PhamKairui Song
1/3R-b R-b A-b
2/3
3/3R-b R-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 3 reviewers.

Read the v1 thread

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

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        |  13 +++++
 mm/Makefile                 |   2 +-
 mm/swap.h                   |   3 +-
 mm/{page_io.c => swap_io.c} | 104 +++++++++++++++++++++---------------
 mm/swapfile.c               |   2 +
 mm/zswap.c                  |   3 +-
 7 files changed, 80 insertions(+), 49 deletions(-)
 rename mm/{page_io.c => swap_io.c} (91%)
Signature · 1 line
2.52.0