@@ -636,12 +636,6 @@ unsigned long change_prot_numa(struct vm_area_struct *vma,
636
636
637
637
return nr_updated ;
638
638
}
639
- #else
640
- static unsigned long change_prot_numa (struct vm_area_struct * vma ,
641
- unsigned long addr , unsigned long end )
642
- {
643
- return 0 ;
644
- }
645
639
#endif /* CONFIG_NUMA_BALANCING */
646
640
647
641
static int queue_pages_test_walk (unsigned long start , unsigned long end ,
@@ -680,14 +674,6 @@ static int queue_pages_test_walk(unsigned long start, unsigned long end,
680
674
if (endvma > end )
681
675
endvma = end ;
682
676
683
- if (flags & MPOL_MF_LAZY ) {
684
- /* Similar to task_numa_work, skip inaccessible VMAs */
685
- if (!is_vm_hugetlb_page (vma ) && vma_is_accessible (vma ) &&
686
- !(vma -> vm_flags & VM_MIXEDMAP ))
687
- change_prot_numa (vma , start , endvma );
688
- return 1 ;
689
- }
690
-
691
677
/*
692
678
* Check page nodes, and queue pages to move, in the current vma.
693
679
* But if no moving, and no strict checking, the scan can be skipped.
@@ -1254,9 +1240,6 @@ static long do_mbind(unsigned long start, unsigned long len,
1254
1240
if (IS_ERR (new ))
1255
1241
return PTR_ERR (new );
1256
1242
1257
- if (flags & MPOL_MF_LAZY )
1258
- new -> flags |= MPOL_F_MOF ;
1259
-
1260
1243
/*
1261
1244
* If we are using the default policy then operation
1262
1245
* on discontinuous address spaces is okay after all
@@ -1301,7 +1284,6 @@ static long do_mbind(unsigned long start, unsigned long len,
1301
1284
1302
1285
if (!err ) {
1303
1286
if (!list_empty (& pagelist )) {
1304
- WARN_ON_ONCE (flags & MPOL_MF_LAZY );
1305
1287
nr_failed |= migrate_pages (& pagelist , new_folio , NULL ,
1306
1288
start , MIGRATE_SYNC , MR_MEMPOLICY_MBIND , NULL );
1307
1289
}
0 commit comments