Hello. On 18-11-2011 17:15, Hillf Danton wrote:
When flushing TLB, if @vma is backed by huge page, we could flush huge TLB, due to that huge page is defined to be far from normal page.
Signed-off-by: Hillf Danton<dhillf@xxxxxxxxx> ---
--- a/arch/mips/mm/tlb-r4k.c Mon May 30 21:17:04 2011 +++ b/arch/mips/mm/tlb-r4k.c Fri Nov 18 21:13:13 2011 @@ -120,22 +120,30 @@ void local_flush_tlb_range(struct vm_are
[...]
write_c0_entryhi(start | newpid); - start += (PAGE_SIZE<< 1); + if (huge) + start += HPAGE_SIZE; + else + start += (PAGE_SIZE << 1);
Parens not needed. WBR, Sergei