Skip to contentSkip to conversation

use page_to_pfn() in __blk_queue_bounce()

PATCH William Lee Irwin III 1 participant 1 message Mar 25, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

__blk_queue_bounce() contains an open-coded page_to_pfn() for the discontig, non-MAP_NR_DENSE() case (wherever MAP_NR_DENSE() went). This converts it to use the standard page_to_pfn() abstraction.

-- wli

mm/highmem.c +1 -1
diff -urpN linux-2.5.66/mm/highmem.c merge-2.5.66-1/mm/highmem.c
@@ -381,7 +381,7 @@ static void __blk_queue_bounce(request_q
 		/*
 		 * is destination page below bounce pfn?
 		 */
-		if ((page - page_zone(page)->zone_mem_map) + (page_zone(page)->zone_start_pfn) < q->bounce_pfn)
+		if (page_to_pfn(page) < q->bounce_pfn)
 			continue;
 
 		/*