]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, highmem: get virtual address of the page using PKMAP_ADDR()
authorJoonsoo Kim <js1304@gmail.com>
Fri, 9 Nov 2012 03:04:08 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Nov 2012 04:16:59 +0000 (15:16 +1100)
commitbbb50e4c895fb25b90b041607f590b2f8698ab34
treee9b205e45048bc5939070910ec37fc0b6d88a165
parent01440812a1d79d2ec43a6e823d0b046e4d8b69a7
mm, highmem: get virtual address of the page using PKMAP_ADDR()

In flush_all_zero_pkmaps(), we have an index of the pkmap associated with
the page.  Using this index, we can simply get virtual address of the
page.  So change it.

Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/highmem.c