Skip to content

Tiny cleanup and improvements about SWAP code

Baoquan He linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 7 repliesIn review 10 of 12 applied

Patches in v1 10 of 12 applied

#Subject and filesSizeRepliesApplied
1/12mm/swap_state.c: fix the obsolete code commentmm/swap_state.c+1 -10 replies
2/12mm/swap_state.c: optimize the code in clear_shadow_from_swap_cache()mm/swap_state.c+1 -30 repliesApplied
3/12mm/swap: remove SWAP_FLAG_PRIO_SHIFTinclude/linux/swap.h mm/swapfile.c+1 -30 repliesApplied
4/12mm/swap: skip scanning cluster range if it's empty clustermm/swapfile.c+3 -03 repliesApplied
5/12mm/swap: rename swap_is_has_cache() to swap_only_has_cache()mm/swapfile.c+3 -30 repliesApplied
6/12mm/swapfile.c: update the code comment above swap_count_continued()mm/swapfile.c+2 -23 replies
7/12mm/swapfile.c: optimize code in setup_clusters()mm/swapfile.c+9 -100 repliesApplied
8/12mm/swap_state.c: remove the meaningless code commentmm/swap_state.c+0 -40 repliesApplied
9/12mm/swapfile.c: remove the unneeded checkingmm/swapfile.c+0 -30 repliesApplied
10/12mm/swap: rename swap_swapcount() to swap_entry_swapped()include/linux/swap.h mm/swap_state.c mm/swapfile.c+7 -70 repliesApplied
11/12mm/swapfile.c: remove the incorrect code commentmm/swapfile.c+0 -10 repliesApplied
12/12mm/swapfile.c: open code cluster_alloc_swap()mm/swapfile.c+10 -280 repliesApplied

Reviews trailers per patch

None of the 12 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKairui Song
SeriesR-b
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] Tiny cleanup and improvements about SWAP code

These are all made during reviewing and learning below patchset from Kairui.

[PATCH v3 00/13] mm, swap: rework of swap allocator locks

Baoquan He (12):
mm/swap_state.c: fix the obsolete code comment mm/swap_state.c: optimize the code in clear_shadow_from_swap_cache() mm/swap: remove SWAP_FLAG_PRIO_SHIFT
mm/swap: skip scanning cluster range if it's empty cluster mm/swap: rename swap_is_has_cache() to swap_only_has_cache() mm/swapfile.c: update the code comment above swap_count_continued() mm/swapfile.c: optimize code in setup_clusters() mm/swap_state.c: remove the meaningless code comment mm/swapfile.c: remove the unneeded checking
mm/swap: rename swap_swapcount() to swap_entry_swapped() mm/swapfile.c: remove the incorrect code comment mm/swapfile.c: open code cluster_alloc_swap()

 include/linux/swap.h |  7 ++--
 mm/swap_state.c      | 12 ++-----
 mm/swapfile.c        | 83 +++++++++++++++++---------------------------
 3 files changed, 37 insertions(+), 65 deletions(-)
Signature · 1 line
2.41.0