linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: <willy@infradead.org>, <linux-mm@kvack.org>,
	<linux-kernel@vger.kernel.org>, <ying.huang@intel.com>,
	<david@redhat.com>, Zi Yan <ziy@nvidia.com>,
	Mike Kravetz <mike.kravetz@oracle.com>, <hughd@google.com>,
	Kefeng Wang <wangkefeng.wang@huawei.com>
Subject: [PATCH v2 0/6] mm: convert numa balancing functions to use a folio
Date: Thu, 21 Sep 2023 15:44:11 +0800	[thread overview]
Message-ID: <20230921074417.24004-1-wangkefeng.wang@huawei.com> (raw)

The do_numa_pages only handle non-compound page, and only PMD-mapped THP
is handled in do_huge_pmd_numa_page(), but large, PTE-mapped folio will
be supported, let's convert more numa balancing functions to use/take a
folio in preparation for that, no functional change intended for now.

v2:
- re-order the patch, drop 'extern' and wrap to 80 columns,
  suggested by Matthew
- rename vm_normal_pmd_folio to vm_normal_folio_pmd and fix cpupid,
  suggested by Huang, Ying

Kefeng Wang (6):
  mm: memory: add vm_normal_folio_pmd()
  mm: huge_memory: use a folio in do_huge_pmd_numa_page()
  mm: memory: use a folio in do_numa_page()
  mm: memory: make numa_migrate_prep() to take a folio
  mm: mempolicy: make mpol_misplaced() to take a folio
  sched/numa, mm: make numa migrate functions to take a folio

 include/linux/mempolicy.h            |  5 +--
 include/linux/mm.h                   |  2 ++
 include/linux/sched/numa_balancing.h |  6 ++--
 kernel/sched/fair.c                  | 12 +++----
 mm/huge_memory.c                     | 29 ++++++++--------
 mm/internal.h                        |  2 +-
 mm/memory.c                          | 49 ++++++++++++++++------------
 mm/mempolicy.c                       | 22 +++++++------
 8 files changed, 69 insertions(+), 58 deletions(-)

-- 
2.27.0



             reply	other threads:[~2023-09-21  8:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21  7:44 Kefeng Wang [this message]
2023-09-21  7:44 ` [PATCH v2 1/6] mm: memory: add vm_normal_folio_pmd() Kefeng Wang
2023-09-21  7:44 ` [PATCH v2 2/6] mm: huge_memory: use a folio in do_huge_pmd_numa_page() Kefeng Wang
2023-09-21  7:44 ` [PATCH v2 3/6] mm: memory: use a folio in do_numa_page() Kefeng Wang
2023-09-21  7:44 ` [PATCH v2 4/6] mm: memory: make numa_migrate_prep() to take a folio Kefeng Wang
2023-09-21  7:44 ` [PATCH v2 5/6] mm: mempolicy: make mpol_misplaced() " Kefeng Wang
2023-09-21  7:44 ` [PATCH v2 6/6] sched/numa, mm: make numa migrate functions " Kefeng Wang

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=20230921074417.24004-1-wangkefeng.wang@huawei.com \
    --to=wangkefeng.wang@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=hughd@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mike.kravetz@oracle.com \
    --cc=willy@infradead.org \
    --cc=ying.huang@intel.com \
    --cc=ziy@nvidia.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;
as well as URLs for NNTP newsgroup(s).