linux 6.1 RC: Fixups for 0001-mm-Support-soft-dirty-flag-reset-for-VA-range patch

This commit is contained in:
Tk-Glitch
2022-10-17 16:07:45 +02:00
parent da7b57fa92
commit c162bca30d

View File

@@ -106,8 +106,8 @@ index 3cec6fbef725..7c7865028f10 100644
- goto out_mm;
+ if (start || end != -1UL)
+ {
+ start = min(start, mm->highest_vm_end) & PAGE_MASK;
+ end = min(end, mm->highest_vm_end) & PAGE_MASK;
+ start = min(start, -1) & PAGE_MASK;
+ end = min(end, -1) & PAGE_MASK;
+
+ if (start >= end)
+ {
@@ -182,7 +182,7 @@ index 3cec6fbef725..7c7865028f10 100644
+ goto out_mm;
+ }
+ }
+ walk_page_range(mm, start, end == -1UL ? -1 : end, &clear_refs_walk_ops,
+ walk_page_range(mm, start, end == -1UL ? -1 : end, &clear_refs_walk_ops, &cp);
if (type == CLEAR_REFS_SOFT_DIRTY) {
mmu_notifier_invalidate_range_end(&range);
flush_tlb_mm(mm);