linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Kinsey Ho <kinseyho@google.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	 Yu Zhao <yuzhao@google.com>,
	Donet Tom <donettom@linux.vnet.ibm.com>,
	 "Aneesh Kumar K . V" <aneesh.kumar@linux.ibm.com>,
	Kinsey Ho <kinseyho@google.com>
Subject: [PATCH mm-unstable v4 0/5] mm/mglru: Kconfig cleanup
Date: Wed, 27 Dec 2023 14:12:00 +0000	[thread overview]
Message-ID: <20231227141205.2200125-1-kinseyho@google.com> (raw)

This series is the result of the following discussion:
https://lore.kernel.org/47066176-bd93-55dd-c2fa-002299d9e034@linux.ibm.com/

It mainly avoids building the code that walks page tables on CPUs that
use it, i.e., those don't support hardware accessed bit. Specifically,
it introduces a new Kconfig to guard some of functions added by
commit bd74fdaea146 ("mm: multi-gen LRU: support page table walks")
on CPUs like POWER9, on which the series was tested.
---
v4: fix kernel build bot error by adding dummy pmd_dirty()

v3: https://lore.kernel.org/20231220040037.883811-1-kinseyho@google.com/


Kinsey Ho (5):
  mm/mglru: add CONFIG_ARCH_HAS_HW_PTE_YOUNG
  mm/mglru: add CONFIG_LRU_GEN_WALKS_MMU
  mm/mglru: remove CONFIG_MEMCG
  mm/mglru: add dummy pmd_dirty()
  mm/mglru: remove CONFIG_TRANSPARENT_HUGEPAGE

 arch/Kconfig                         |   8 +
 arch/arm64/Kconfig                   |   1 +
 arch/loongarch/include/asm/pgtable.h |   1 +
 arch/mips/include/asm/pgtable.h      |   1 +
 arch/riscv/include/asm/pgtable.h     |   1 +
 arch/s390/include/asm/pgtable.h      |   1 +
 arch/sparc/include/asm/pgtable_64.h  |   1 +
 arch/x86/Kconfig                     |   1 +
 arch/x86/include/asm/pgtable.h       |   7 +-
 include/linux/memcontrol.h           |   2 +-
 include/linux/mm_types.h             |  16 +-
 include/linux/mmzone.h               |  28 +--
 include/linux/pgtable.h              |   9 +-
 kernel/fork.c                        |   2 +-
 mm/Kconfig                           |   4 +
 mm/vmscan.c                          | 271 ++++++++++++++-------------
 16 files changed, 187 insertions(+), 167 deletions(-)

-- 
2.43.0.472.g3155946c3a-goog



             reply	other threads:[~2023-12-27 14:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-27 14:12 Kinsey Ho [this message]
2023-12-27 14:12 ` [PATCH mm-unstable v4 1/5] mm/mglru: add CONFIG_ARCH_HAS_HW_PTE_YOUNG Kinsey Ho
2023-12-27 14:12 ` [PATCH mm-unstable v4 2/5] mm/mglru: add CONFIG_LRU_GEN_WALKS_MMU Kinsey Ho
2023-12-27 14:12 ` [PATCH mm-unstable v4 3/5] mm/mglru: remove CONFIG_MEMCG Kinsey Ho
2023-12-27 14:12 ` [PATCH mm-unstable v4 4/5] mm/mglru: add dummy pmd_dirty() Kinsey Ho
2023-12-27 14:12 ` [PATCH mm-unstable v4 5/5] mm/mglru: remove CONFIG_TRANSPARENT_HUGEPAGE Kinsey Ho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231227141205.2200125-1-kinseyho@google.com \
    --to=kinseyho@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=aneesh.kumar@linux.ibm.com \
    --cc=donettom@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=yuzhao@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox