From 5bf4599e0d1dead1183f3a721da85ed12087ff6c Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 28 Mar 2003 03:20:19 -0800 Subject: [PATCH] [PATCH] use page_to_pfn() in __blk_queue_bounce() From: William Lee Irwin III __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. --- mm/highmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/highmem.c b/mm/highmem.c index c67048ed930fb..8fb8c01be3b6f 100644 --- a/mm/highmem.c +++ b/mm/highmem.c @@ -381,7 +381,7 @@ static void __blk_queue_bounce(request_queue_t *q, struct bio **bio_orig, /* * 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; /* -- 2.53.0