Repository navigation
Commit 369ea82
mm/rmap: update to new mmu_notifier semantic v2
Replace all mmu_notifier_invalidate_page() calls by *_invalidate_range()
and make sure it is bracketed by calls to *_invalidate_range_start()/end().
Note that because we can not presume the pmd value or pte value we have
to assume the worst and unconditionaly report an invalidation as
happening.
Changed since v2:
- try_to_unmap_one() only one call to mmu_notifier_invalidate_range()
- compute end with PAGE_SIZE << compound_order(page)
- fix PageHuge() case in try_to_unmap_one()
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Reviewed-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Bernhard Held <berny156@gmx.de>
Cc: Adam Borowski <kilobyte@angband.pl>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Wanpeng Li <kernellwp@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Nadav Amit <nadav.amit@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: axie <axie@amd.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent a4d1a88 commit 369ea82
1 file changed
Lines changed: 32 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| 890 | + | |
890 | 891 | | |
891 | 892 | | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
892 | 900 | | |
| 901 | + | |
893 | 902 | | |
894 | | - | |
| 903 | + | |
| 904 | + | |
895 | 905 | | |
896 | 906 | | |
897 | 907 | | |
| |||
904 | 914 | | |
905 | 915 | | |
906 | 916 | | |
| 917 | + | |
907 | 918 | | |
908 | 919 | | |
909 | 920 | | |
| |||
918 | 929 | | |
919 | 930 | | |
920 | 931 | | |
| 932 | + | |
| 933 | + | |
921 | 934 | | |
922 | 935 | | |
923 | 936 | | |
| |||
926 | 939 | | |
927 | 940 | | |
928 | 941 | | |
929 | | - | |
| 942 | + | |
930 | 943 | | |
931 | 944 | | |
932 | 945 | | |
933 | 946 | | |
| 947 | + | |
| 948 | + | |
934 | 949 | | |
935 | 950 | | |
936 | 951 | | |
| |||
1324 | 1339 | | |
1325 | 1340 | | |
1326 | 1341 | | |
| 1342 | + | |
1327 | 1343 | | |
1328 | 1344 | | |
1329 | 1345 | | |
| |||
1335 | 1351 | | |
1336 | 1352 | | |
1337 | 1353 | | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
1338 | 1362 | | |
1339 | 1363 | | |
1340 | 1364 | | |
| |||
1445 | 1469 | | |
1446 | 1470 | | |
1447 | 1471 | | |
| 1472 | + | |
1448 | 1473 | | |
1449 | 1474 | | |
1450 | 1475 | | |
| |||
1490 | 1515 | | |
1491 | 1516 | | |
1492 | 1517 | | |
1493 | | - | |
| 1518 | + | |
| 1519 | + | |
1494 | 1520 | | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1495 | 1524 | | |
1496 | 1525 | | |
1497 | 1526 | | |
| |||
0 commit comments