[ARM] pass vma for flush_anon_page()
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 30 Dec 2006 22:24:19 +0000 (22:24 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 8 Jan 2007 19:49:54 +0000 (19:49 +0000)
commita6f36be32622730710b2fadacb6e2649defa4371
tree09d0f3ebe839b76373ee5ed4674fe305ad9ac256
parente47c222b22cd53c317a5573e1dc5f9e0cbd46380
[ARM] pass vma for flush_anon_page()

Since get_user_pages() may be used with processes other than the
current process and calls flush_anon_page(), flush_anon_page() has to
cope in some way with non-current processes.

It may not be appropriate, or even desirable to flush a region of
virtual memory cache in the current process when that is different to
the process that we want the flush to occur for.

Therefore, pass the vma into flush_anon_page() so that the architecture
can work out whether the 'vmaddr' is for the current process or not.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Documentation/cachetlb.txt
include/asm-parisc/cacheflush.h
include/linux/highmem.h
mm/memory.c