@@ -2670,14 +2670,14 @@ void free_hot_cold_page_list(struct list_head *list, bool cold)
pfn = page_to_pfn(page);
if (!free_hot_cold_page_prepare(page, pfn))
list_del(&page->lru);
- page->private = pfn;
+ set_page_private(page, pfn);
}
local_irq_save(flags);
list_for_each_entry_safe(page, next, list, lru) {
- unsigned long pfn = page->private;
+ unsigned long pfn = page_private(page);
- page->private = 0;
+ set_page_private(page, 0);
trace_mm_page_free_batched(page, cold);
free_hot_cold_page_commit(page, pfn, cold);
}