]> Git Repo - linux.git/commitdiff
mm, highmem: get virtual address of the page using PKMAP_ADDR()
authorJoonsoo Kim <[email protected]>
Wed, 12 Dec 2012 00:01:24 +0000 (16:01 -0800)
committerLinus Torvalds <[email protected]>
Wed, 12 Dec 2012 01:22:24 +0000 (17:22 -0800)
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 <[email protected]>
Cc: Mel Gorman <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/highmem.c

index 4d6f96c201914b53fe14250ddbcdb9411329a66a..d999077431df9c0314f46c3854ab6cecc2acbfe9 100644 (file)
@@ -137,8 +137,7 @@ static void flush_all_zero_pkmaps(void)
                 * So no dangers, even with speculative execution.
                 */
                page = pte_page(pkmap_page_table[i]);
-               pte_clear(&init_mm, (unsigned long)page_address(page),
-                         &pkmap_page_table[i]);
+               pte_clear(&init_mm, PKMAP_ADDR(i), &pkmap_page_table[i]);
 
                set_page_address(page, NULL);
                need_flush = 1;
This page took 0.048756 seconds and 4 git commands to generate.