aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2007-05-06 17:50:42 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 15:12:58 -0400
commit7be9823491ecbaf9700d7d3502cb4b4dd0ed868a (patch)
tree10f606c59837d851376823dae5d8faf50a51bde8 /mm/page_alloc.c
parent433ecb4ab312f873870b67ee374502e84f6dcf92 (diff)
swsusp: use inline functions for changing page flags
Replace direct invocations of SetPageNosave(), SetPageNosaveFree() etc. with calls to inline functions that can be changed in subsequent patches without modifying the code calling them. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-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);