]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/resource.c
futex: Replace PF_EXITPIDONE with a state
[linux.git] / kernel / resource.c
index 74877e9d90ca6402e937515b291661f5ea0c9377..76036a41143b9b136a51e0c56332e191669ac8bb 100644 (file)
@@ -487,8 +487,8 @@ int walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages,
        while (start < end &&
               !find_next_iomem_res(start, end, flags, IORES_DESC_NONE,
                                    false, &res)) {
-               pfn = (res.start + PAGE_SIZE - 1) >> PAGE_SHIFT;
-               end_pfn = (res.end + 1) >> PAGE_SHIFT;
+               pfn = PFN_UP(res.start);
+               end_pfn = PFN_DOWN(res.end + 1);
                if (end_pfn > pfn)
                        ret = (*func)(pfn, end_pfn - pfn, arg);
                if (ret)