[PATCH v2 0/3] A few cleanup and fixup patches for swap

From: Miaohe Lin
Date: Wed Jun 08 2022 - 10:40:54 EST


Hi everyone,
This series contains a cleaup patch to remove unneeded swap_cache_info
statistics, and two bugfix patches to avoid possible data races of
inuse_pages and so on. More details can be found in the respective
changelogs. Thanks!

---
v2:
collect Reviewed-by tag per David
drop patch "mm/swapfile: avoid confusing swap cache statistics"
add a new patch to remove swap_cache_info statistics per David
Many thanks David for review and comment.
---
Miaohe Lin (3):
mm/swapfile: make security_vm_enough_memory_mm() work as expected
mm/swapfile: fix possible data races of inuse_pages
mm/swap: remove swap_cache_info statistics

mm/swap_state.c | 17 -----------------
mm/swapfile.c | 14 +++++++++-----
2 files changed, 9 insertions(+), 22 deletions(-)

--
2.23.0