linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Yang Shi <shy828301@gmail.com>
To: mgorman@suse.de, kirill.shutemov@linux.intel.com, ziy@nvidia.com,
	ying.huang@intel.com, mhocko@suse.com, hughd@google.com,
	gerald.schaefer@linux.ibm.com, hca@linux.ibm.com,
	gor@linux.ibm.com, borntraeger@de.ibm.com,
	akpm@linux-foundation.org
Cc: shy828301@gmail.com, linux-mm@kvack.org,
	linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [v3 PATCH 2/7] mm: memory: make numa_migrate_prep() non-static
Date: Tue, 18 May 2021 13:07:56 -0700	[thread overview]
Message-ID: <20210518200801.7413-3-shy828301@gmail.com> (raw)
In-Reply-To: <20210518200801.7413-1-shy828301@gmail.com>

The numa_migrate_prep() will be used by huge NUMA fault as well in the following
patch, make it non-static.

Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Yang Shi <shy828301@gmail.com>
---
 mm/internal.h | 3 +++
 mm/memory.c   | 5 ++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/mm/internal.h b/mm/internal.h
index 8a176d1d0176..28fc471b4669 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -653,4 +653,7 @@ int vmap_pages_range_noflush(unsigned long addr, unsigned long end,
 
 void vunmap_range_noflush(unsigned long start, unsigned long end);
 
+int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
+		      unsigned long addr, int page_nid, int *flags);
+
 #endif	/* __MM_INTERNAL_H */
diff --git a/mm/memory.c b/mm/memory.c
index f9df3ab12813..a2f2c2a8d28e 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -4129,9 +4129,8 @@ static vm_fault_t do_fault(struct vm_fault *vmf)
 	return ret;
 }
 
-static int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
-				unsigned long addr, int page_nid,
-				int *flags)
+int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
+		      unsigned long addr, int page_nid, int *flags)
 {
 	get_page(page);
 
-- 
2.26.2



  parent reply	other threads:[~2021-05-18 20:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-18 20:07 [v3 PATCH 0/7] mm: thp: use generic THP migration for NUMA hinting fault Yang Shi
2021-05-18 20:07 ` [v3 PATCH 1/7] mm: memory: add orig_pmd to struct vm_fault Yang Shi
2021-05-19  8:13   ` Mel Gorman
2021-05-18 20:07 ` Yang Shi [this message]
2021-05-18 20:07 ` [v3 PATCH 3/7] mm: thp: refactor NUMA fault handling Yang Shi
2021-05-18 20:07 ` [v3 PATCH 4/7] mm: migrate: account THP NUMA migration counters correctly Yang Shi
2021-05-18 20:07 ` [v3 PATCH 5/7] mm: migrate: don't split THP for misplaced NUMA page Yang Shi
2021-05-18 20:08 ` [v3 PATCH 6/7] mm: migrate: check mapcount for THP instead of refcount Yang Shi
2021-05-18 20:08 ` [v3 PATCH 7/7] mm: thp: skip make PMD PROT_NONE if THP migration is not supported Yang Shi

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=20210518200801.7413-3-shy828301@gmail.com \
    --to=shy828301@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=borntraeger@de.ibm.com \
    --cc=gerald.schaefer@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=hughd@google.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mhocko@suse.com \
    --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).