hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IAFONL CVE: NA
--------------------------------
Now the numa_migrate_prep() is not static in mm core, we can delete the duplicate one here.
Signed-off-by: Nanyong Sun sunnanyong@huawei.com --- mm/mem_sampling.c | 16 ---------------- 1 file changed, 16 deletions(-)
diff --git a/mm/mem_sampling.c b/mm/mem_sampling.c index 7d3a159c8f16..1d8a831be531 100644 --- a/mm/mem_sampling.c +++ b/mm/mem_sampling.c @@ -129,22 +129,6 @@ static void mem_sampling_process(struct mem_sampling_record *record_base, int nr }
#ifdef CONFIG_NUMABALANCING_MEM_SAMPLING - -static int numa_migrate_prep(struct page *page, struct vm_area_struct *vma, - unsigned long addr, int page_nid, - int *flags) -{ - get_page(page); - - count_vm_numa_event(NUMA_HINT_FAULTS); - if (page_nid == numa_node_id()) { - count_vm_numa_event(NUMA_HINT_FAULTS_LOCAL); - *flags |= TNF_FAULT_LOCAL; - } - - return mpol_misplaced(page, vma, addr); -} - static inline void do_thp_numa_access(struct mm_struct *mm, struct vm_area_struct *vma, u64 vaddr, struct page *page)