aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 36d713e216e8..59164313167f 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -775,8 +775,8 @@ void mark_free_pages(struct zone *zone)
775 if (pfn_valid(pfn)) { 775 if (pfn_valid(pfn)) {
776 struct page *page = pfn_to_page(pfn); 776 struct page *page = pfn_to_page(pfn);
777 777
778 if (!PageNosave(page)) 778 if (!swsusp_page_is_forbidden(page))
779 ClearPageNosaveFree(page); 779 swsusp_unset_page_free(page);
780 } 780 }
781 781
782 for (order = MAX_ORDER - 1; order >= 0; --order) 782 for (order = MAX_ORDER - 1; order >= 0; --order)
@@ -785,7 +785,7 @@ void mark_free_pages(struct zone *zone)
785 785
786 pfn = page_to_pfn(list_entry(curr, struct page, lru)); 786 pfn = page_to_pfn(list_entry(curr, struct page, lru));
787 for (i = 0; i < (1UL << order); i++) 787 for (i = 0; i < (1UL << order); i++)
788 SetPageNosaveFree(pfn_to_page(pfn + i)); 788 swsusp_set_page_free(pfn_to_page(pfn + i));
789 } 789 }
790 790
791 spin_unlock_irqrestore(&zone->lock, flags); 791 spin_unlock_irqrestore(&zone->lock, flags);