ARM: 7923/1: mm: fix dcache flush logic for compound high pages
authorSteven Capper <steve.capper@linaro.org>
Mon, 16 Dec 2013 16:25:52 +0000 (17:25 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Dec 2013 12:46:08 +0000 (12:46 +0000)
commit2a7cfcbc0553365d75716f69ee7b704cac7c9248
tree0300f36101d0b5dfb9135722053780d232536fed
parent4ff859fe1dc0da0f87bbdfff78f527898878fa4a
ARM: 7923/1: mm: fix dcache flush logic for compound high pages

When given a compound high page, __flush_dcache_page will only flush
the first page of the compound page repeatedly rather than the entire
set of constituent pages.

This error was introduced by:
   0b19f93 ARM: mm: Add support for flushing HugeTLB pages.

This patch corrects the logic such that all constituent pages are now
flushed.

Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/flush.c