tools headers UAPI: Sync drm/i915_drm.h with the kernel sources
[linux-2.6-microblaze.git] / mm / page_reporting.c
index 3bbd471..cd8e13d 100644 (file)
@@ -92,7 +92,7 @@ page_reporting_drain(struct page_reporting_dev_info *prdev,
                 * report on the new larger page when we make our way
                 * up to that higher order.
                 */
-               if (PageBuddy(page) && page_order(page) == order)
+               if (PageBuddy(page) && buddy_order(page) == order)
                        __SetPageReported(page);
        } while ((sg = sg_next(sg)));
 
@@ -178,7 +178,7 @@ page_reporting_cycle(struct page_reporting_dev_info *prdev, struct zone *zone,
                 * the new head of the free list before we release the
                 * zone lock.
                 */
-               if (&page->lru != list && !list_is_first(&page->lru, list))
+               if (!list_is_first(&page->lru, list))
                        list_rotate_to_front(&page->lru, list);
 
                /* release lock before waiting on report processing */