mm: __tlb_remove_page() check the correct batch
authorShaohua Li <shaohua.li@intel.com>
Fri, 8 Jul 2011 22:39:41 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 Jul 2011 04:14:43 +0000 (21:14 -0700)
commit0b43c3aab0137595335b08b340a3f3e5af9818a6
treedad2556800b89d42875470744a25533d1d983989
parent215ddd6664ced067afca7eebd2d1eb83f064ff5a
mm: __tlb_remove_page() check the correct batch

__tlb_remove_page() switches to a new batch page, but still checks space
in the old batch.  This check always fails, and causes a forced tlb flush.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c