We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f60e2a9 commit e6c495aCopy full SHA for e6c495a
mm/memory.c
@@ -1101,6 +1101,7 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb,
1101
spinlock_t *ptl;
1102
pte_t *start_pte;
1103
pte_t *pte;
1104
+ unsigned long range_start = addr;
1105
1106
again:
1107
init_rss_vec(rss);
@@ -1206,12 +1207,14 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb,
1206
1207
force_flush = 0;
1208
1209
#ifdef HAVE_GENERIC_MMU_GATHER
- tlb->start = addr;
1210
- tlb->end = end;
+ tlb->start = range_start;
1211
+ tlb->end = addr;
1212
#endif
1213
tlb_flush_mmu(tlb);
- if (addr != end)
1214
+ if (addr != end) {
1215
+ range_start = addr;
1216
goto again;
1217
+ }
1218
}
1219
1220
return addr;
0 commit comments