|
@@ -49,13 +49,11 @@ static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep,
|
|
static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb,
|
|
static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb,
|
|
unsigned int page_size)
|
|
unsigned int page_size)
|
|
{
|
|
{
|
|
- if (tlb->fullmm)
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
if (!tlb->page_size)
|
|
if (!tlb->page_size)
|
|
tlb->page_size = page_size;
|
|
tlb->page_size = page_size;
|
|
else if (tlb->page_size != page_size) {
|
|
else if (tlb->page_size != page_size) {
|
|
- tlb_flush_mmu(tlb);
|
|
|
|
|
|
+ if (!tlb->fullmm)
|
|
|
|
+ tlb_flush_mmu(tlb);
|
|
/*
|
|
/*
|
|
* update the page size after flush for the new
|
|
* update the page size after flush for the new
|
|
* mmu_gather.
|
|
* mmu_gather.
|