[PATCH v2 0/7] A few cleanup patches for khugepaged

From: Miaohe Lin
Date: Sat Jun 25 2022 - 05:28:29 EST


Hi everyone,
This series contains a few cleaup patches to remove unneeded return
value, use helper macro, fix typos and so on. More details can be
found in the respective changelogs. Thanks!
---
v2
rebase on linux-next-20220624
collect Reviewed-by tag per Yang Shi, Zach. Thanks.
tweak commit log of 1/7
avoid relocking mmap_sem and adjust "swapped_in++" in 2/7
add comment for nr_none and NR_SHMEM in 4/7
align args with the opening brace in 5/7 and 6/7
do free_swap_cache before put_page in 7/7
---
Miaohe Lin (7):
mm/khugepaged: remove unneeded shmem_huge_enabled() check
mm/khugepaged: stop swapping in page when VM_FAULT_RETRY occurs
mm/khugepaged: trivial typo and codestyle cleanup
mm/khugepaged: minor cleanup for collapse_file
mm/khugepaged: use helper macro __ATTR_RW
mm/khugepaged: remove unneeded return value of
khugepaged_add_pte_mapped_thp()
mm/khugepaged: try to free transhuge swapcache when possible

include/linux/swap.h | 5 ++
mm/khugepaged.c | 137 ++++++++++++++++++++-----------------------
mm/swap.h | 5 --
3 files changed, 69 insertions(+), 78 deletions(-)

--
2.23.0