[PATCH v2 00/13] Some cleanups for memory-failure

From: Miaohe Lin
Date: Thu Jun 06 2024 - 02:36:37 EST


Hi everyone,
This series contains a few cleanup patches to simplify unneeded function
variant, add helper macro, fix some obsolete comments and so on. More
details can be found in the respective changelogs.
Thanks!

Miaohe Lin (13):
mm/memory-failure: simplify put_ref_page()
mm/memory-failure: remove MF_MSG_SLAB
mm/memory-failure: add macro GET_PAGE_MAX_RETRY_NUM
mm/memory-failure: save some page_folio() calls
mm/memory-failure: remove unneeded empty string
mm/memory-failure: remove confusing initialization to count
mm/memory-failure: simplify unneeded hwpoison_filter() variant
mm/memory-failure: use helper macro task_pid_nr()
mm/memory-failure: remove obsolete comment in unpoison_memory()
mm/memory-failure: move some function declarations into internal.h
mm/memory-failure: fix comment of get_hwpoison_page()
mm/memory-failure: remove obsolete comment in kill_proc()
mm/memory-failure: correct comment in me_swapcache_dirty

include/linux/mm.h | 8 -------
include/linux/page-flags.h | 5 ----
include/linux/rmap.h | 2 --
include/ras/ras_event.h | 1 -
mm/internal.h | 10 ++++++++
mm/memory-failure.c | 48 +++++++++++++++-----------------------
6 files changed, 29 insertions(+), 45 deletions(-)


base-commit: 19b8422c5bd56fb5e7085995801c6543a98bda1f
--
2.33.0