Commit b24c4e67 authored by Linus Torvalds's avatar Linus Torvalds

Move check_pgt_cache() to tlb_finish_mmu().

It should be _after_ we have flushed the TLB.
parent ea882f08
...@@ -86,6 +86,9 @@ static inline void tlb_finish_mmu(mmu_gather_t *tlb, unsigned long start, unsign ...@@ -86,6 +86,9 @@ static inline void tlb_finish_mmu(mmu_gather_t *tlb, unsigned long start, unsign
freed = rss; freed = rss;
mm->rss = rss - freed; mm->rss = rss - freed;
tlb_flush_mmu(tlb, start, end); tlb_flush_mmu(tlb, start, end);
/* keep the page table cache within bounds */
check_pgt_cache();
} }
......
...@@ -127,9 +127,6 @@ void clear_page_tables(mmu_gather_t *tlb, unsigned long first, int nr) ...@@ -127,9 +127,6 @@ void clear_page_tables(mmu_gather_t *tlb, unsigned long first, int nr)
free_one_pgd(tlb, page_dir); free_one_pgd(tlb, page_dir);
page_dir++; page_dir++;
} while (--nr); } while (--nr);
/* keep the page table cache within bounds */
check_pgt_cache();
} }
pte_t * pte_alloc_map(struct mm_struct *mm, pmd_t *pmd, unsigned long address) pte_t * pte_alloc_map(struct mm_struct *mm, pmd_t *pmd, unsigned long address)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment