[ARM] Fix shared mmap when more than two maps of the same file exist
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 27 Jul 2008 09:35:54 +0000 (10:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 27 Jul 2008 09:35:54 +0000 (10:35 +0100)
commit53cdb27a933e4032934cbda0b447cfc9943c0eac
treebf19badff6f5d4353c7cbf7a5456407deedcbbff
parentdaf93dd55c48b65ab2f1907e0fc5ef994896c787
[ARM] Fix shared mmap when more than two maps of the same file exist

The shared mmap code works fine for the test case, which only checked
for two shared maps of the same file.  However, three shared maps
result in one mapping remaining cached, resulting in stale data being
visible via that mapping.  Fix this.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/fault-armv.c