Skip to content

Repair and clean up vm.zone_reclaim_mode sysctl ABI

Dave Hansen linux-mm lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 11 repliesIn review
  2. v11 patch 14 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/vmscan: restore zone_reclaim_mode ABIDocumentation/admin-guide/sysctl/vm.rst mm/vmscan.c+12 -73 replies
2/3mm/vmscan: move RECLAIM* bits to uapi headerinclude/uapi/linux/mempolicy.h mm/vmscan.c+7 -83 replies
3/3mm/vmscan: replace implicit RECLAIM_ZONE checks with explicit checksinclude/linux/swap.h mm/khugepaged.c mm/page_alloc.c+9 -24 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBen WidawskyDavid Rientjes
SeriesR-b
1/3A-b
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/3] [v2] Repair and clean up vm.zone_reclaim_mode sysctl ABI

A previous cleanup accidentally changed the vm.zone_reclaim_mode ABI.

This series restores the ABI and then reorganizes the code to make the ABI more obvious. Since the single-patch v1[1], I've:

* Restored the RECLAIM_ZONE naming, comment and Documentation now that the implicit checks for it are known.
* Move RECLAIM_* definitions to a uapi header
* Add a node_reclaim_enabled() helper

 Documentation/admin-guide/sysctl/vm.rst |   10 +++++-----
 include/linux/swap.h                    |    7 +++++++
 include/uapi/linux/mempolicy.h          |    7 +++++++
 mm/khugepaged.c                         |    2 +-
 mm/page_alloc.c                         |    2 +-
 mm/vmscan.c                             |    3 ---
 6 files changed, 21 insertions(+), 10 deletions(-)

1. https://lore.kernel.org/linux-mm/[email protected]/

Cc Ben Widawsky <[email protected]>
Cc Alex Shi <[email protected]>
Cc Daniel Wagner <[email protected]>
Cc "Tobin C. Harding" <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Huang Ying <[email protected]>
Cc Dan Williams <[email protected]>
Cc Qian Cai <[email protected]>
Cc Daniel Wagner <[email protected]>