vmalloc: call flush_cache_vunmap() from unmap_kernel_range()
authorTejun Heo <tj@kernel.org>
Fri, 20 Feb 2009 23:38:48 +0000 (15:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Feb 2009 01:57:49 +0000 (17:57 -0800)
commitf6fcba7014f9cc535fa75ef98c008b24e49e2212
tree85aae17fc20b8a4b6d5112c740950e0dcdcb9baf
parent3fd076dd955a34c35dc456f4ef676e03cdced044
vmalloc: call flush_cache_vunmap() from unmap_kernel_range()

Impact: proper vcache flush on unmap_kernel_range()

flush_cache_vunmap() should be called before pages are unmapped.  Add
a call to it in unmap_kernel_range().

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Nick Piggin <npiggin@suse.de>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: <stable@kernel.org> [2.6.28.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmalloc.c