Skip to content

mm,swap: cleanup VMA based swap readahead window calculation

Huang Ying linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew 2 of 3 applied

Patches in v1 2 of 3 applied

#Subject and filesSizeRepliesApplied
1/3mm,swap: fix a theoretical underflow in readahead window calculationmm/swap_state.c+2 -00 replies
2/3mm,swap: remove struct vma_swap_readaheadmm/swap_state.c+20 -280 repliesApplied
3/3mm,swap: simplify VMA based swap readahead window calculationmm/swap_state.c+25 -410 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] mm,swap: cleanup VMA based swap readahead window calculation

From: "Huang Ying" <[email protected]>

When VMA based swap readahead is introduced in commit ec560175c0b6 ("mm, swap: VMA based swap readahead"), "struct vma_swap_readahead" is defined to describe the readahead window. Because we wanted to save the PTE entries in the struct at that time. But after commit 4f8fcf4ced0b ("mm/swap: swap_vma_readahead() do the pte_offset_map()"), we no longer save PTE entries in the struct. The size of the struct becomes so small, that it's better to use the fields of the struct directly. This can simplify the code to improve the code readability. The line number of source code reduces too.

A theoretical underflow issue and some related code cleanup is done in the series too.

Best Regards,
Huang, Ying