linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Clean up and fixes for swap
@ 2022-12-19 18:58 Kairui Song
  2022-12-19 18:58 ` [PATCH v2 1/4] swapfile: get rid of volatile and avoid redundant read Kairui Song
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kairui Song @ 2022-12-19 18:58 UTC (permalink / raw)
  To: linux-mm
  Cc: linux-kernel, Andrew Morton, Miaohe Lin, David Hildenbrand,
	Huang, Ying, Hugh Dickins, Matthew Wilcox, Kairui Song

From: Kairui Song <kasong@tencent.com>

This series cleanup some code path, saves a few cycles and reduce the
object size by a bit, also fixes some rare race issue of statistics.

Update from V1:
- Collect Huang, Ying's Reviewd-by.
- Use bloat-o-meter to show size change info in commit message as
  suggested by Matthew Wilcox.
- Rework patch 4/4 as suggested by Huang, Ying.
- Drop a previouly invalid clean up patch.

Kairui Song (4):
  swapfile: get rid of volatile and avoid redundant read
  swap: avoid a redundant pte map if ra window is 1
  swap: fold swap_ra_clamp_pfn into swap_ra_info
  swap: avoid holding swap reference in swap_cache_get_folio

 mm/shmem.c      | 11 +++++++++
 mm/swap_state.c | 59 +++++++++++++++++++------------------------------
 mm/swapfile.c   |  7 +++---
 3 files changed, 38 insertions(+), 39 deletions(-)

-- 
2.35.2



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-19 18:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 18:58 [PATCH v2 0/4] Clean up and fixes for swap Kairui Song
2022-12-19 18:58 ` [PATCH v2 1/4] swapfile: get rid of volatile and avoid redundant read Kairui Song
2022-12-19 18:58 ` [PATCH v2 2/4] swap: avoid a redundant pte map if ra window is 1 Kairui Song
2022-12-19 18:58 ` [PATCH v2 3/4] swap: fold swap_ra_clamp_pfn into swap_ra_info Kairui Song
2022-12-19 18:58 ` [PATCH v2 4/4] swap: avoid holding swap reference in swap_cache_get_folio Kairui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox