Thread (9 messages) 9 messages, 2 authors, 2021-05-19
STALE1877d REVIEWED: 1 (1M)
Revisions (3)
  1. rfc [diff vs current]
  2. v2 [diff vs current]
  3. v3 current

[v3 PATCH 2/7] mm: memory: make numa_migrate_prep() non-static

From: Yang Shi <hidden>
Date: 2021-05-18 20:08:38
Also in: linux-s390, lkml
Subsystem: memory management, memory management - core, the rest · Maintainers: Andrew Morton, David Hildenbrand, Linus Torvalds

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 <redacted>
---
 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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help