Commit 5143192
mm/migrate: add a flags parameter to migrate_vma
The src_owner field in struct migrate_vma is being used for two purposes,
it acts as a selection filter for which types of pages are to be migrated
and it identifies device private pages owned by the caller.
Split this into separate parameters so the src_owner field can be used
just to identify device private pages owned by the caller of
migrate_vma_setup().
Rename the src_owner field to pgmap_owner to reflect it is now used only
to identify which device private pages to migrate.
Link: https://lore.kernel.org/r/20200723223004.9586-3-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>1 parent 1a77dec commit 5143192
5 files changed
Lines changed: 23 additions & 19 deletions
File tree
- arch/powerpc/kvm
- drivers/gpu/drm/nouveau
- include/linux
- lib
- mm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
403 | 404 | | |
404 | 405 | | |
405 | 406 | | |
| |||
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
580 | | - | |
| 581 | + | |
| 582 | + | |
581 | 583 | | |
582 | 584 | | |
583 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
615 | 616 | | |
616 | 617 | | |
617 | 618 | | |
| 619 | + | |
618 | 620 | | |
619 | 621 | | |
620 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| |||
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
202 | | - | |
203 | | - | |
204 | | - | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | | - | |
| 210 | + | |
| 211 | + | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | 588 | | |
598 | 589 | | |
599 | 590 | | |
| |||
702 | 693 | | |
703 | 694 | | |
704 | 695 | | |
705 | | - | |
| 696 | + | |
| 697 | + | |
706 | 698 | | |
707 | 699 | | |
708 | 700 | | |
| |||
1053 | 1045 | | |
1054 | 1046 | | |
1055 | 1047 | | |
1056 | | - | |
| 1048 | + | |
| 1049 | + | |
1057 | 1050 | | |
1058 | 1051 | | |
1059 | 1052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2287 | 2287 | | |
2288 | 2288 | | |
2289 | 2289 | | |
2290 | | - | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
2291 | 2293 | | |
2292 | 2294 | | |
2293 | 2295 | | |
2294 | 2296 | | |
2295 | 2297 | | |
2296 | 2298 | | |
2297 | 2299 | | |
2298 | | - | |
| 2300 | + | |
2299 | 2301 | | |
2300 | 2302 | | |
2301 | 2303 | | |
| |||
0 commit comments