mbox series

[v3,00/13] Some cleanups for memory-failure

Message ID 20240612071835.157004-1-linmiaohe@huawei.com (mailing list archive)
Headers show
Series Some cleanups for memory-failure | expand

Message

Miaohe Lin June 12, 2024, 7:18 a.m. UTC
Hi everyone,
This series contains a few cleanup patches to avoid exporting unused
function, add helper macro, fix some obsolete comments and so on. More
details can be found in the respective changelogs.
Thanks!
---
v3:
 Fix build error per kernel test robot. Thanks.
 s/extern// for function declarations per Matthew. Thanks.
v2:
 Collect Reviewed-by tag and use folio_mapped() per David. Thanks.
 Fix build error per kernel test robot. 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: don't export hwpoison_filter() when
    !CONFIG_HWPOISON_INJECT
  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        | 46 +++++++++++++++-----------------------
 6 files changed, 28 insertions(+), 44 deletions(-)


base-commit: 8a58962d482f5ab03d698f56fcbd5449757accfa