Commit aff20e4c authored by David Hildenbrand's avatar David Hildenbrand Committed by Stephen Rothwell


In saveable_highmem_page(), move the PageReserved() check to a new
check along with the PageOffline() check to separate it from the
swsusp checks.

Link: default avatarDavid Hildenbrand <>
Acked-by: Pavel Machek's avatarPavel Machek <>
Acked-by: default avatarRafael J. Wysocki <>
Cc: "Rafael J. Wysocki" <>
Cc: Pavel Machek <>
Cc: Len Brown <>
Cc: Andrew Morton <>
Cc: Matthew Wilcox <>
Cc: Michal Hocko <>
Cc: "Michael S. Tsirkin" <>
Cc: Alexander Duyck <>
Cc: Alexey Dobriyan <>
Cc: Arnd Bergmann <>
Cc: Baoquan He <>
Cc: Borislav Petkov <>
Cc: Boris Ostrovsky <>
Cc: Christian Hansen <>
Cc: Dave Young <>
Cc: David Rientjes <>
Cc: Greg Kroah-Hartman <>
Cc: Haiyang Zhang <>
Cc: Jonathan Corbet <>
Cc: Juergen Gross <>
Cc: Julien Freche <>
Cc: Kairui Song <>
Cc: Kazuhito Hagio <>
Cc: "Kirill A. Shutemov" <>
Cc: Konstantin Khlebnikov <>
Cc: "K. Y. Srinivasan" <>
Cc: Lianbo Jiang <>
Cc: Michal Hocko <>
Cc: Mike Rapoport <>
Cc: Miles Chen <>
Cc: Nadav Amit <>
Cc: Naoya Horiguchi <>
Cc: Omar Sandoval <>
Cc: Pankaj gupta <>
Cc: Pavel Tatashin <>
Cc: Stefano Stabellini <>
Cc: Stephen Hemminger <>
Cc: Stephen Rothwell <>
Cc: Vitaly Kuznetsov <>
Cc: Vlastimil Babka <>
Cc: Xavier Deguillard <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarStephen Rothwell <>
parent 8ca5d0f0
......@@ -1221,8 +1221,10 @@ static struct page *saveable_highmem_page(struct zone *zone, unsigned long pfn)
if (swsusp_page_is_forbidden(page) || swsusp_page_is_free(page) ||
PageReserved(page) || PageOffline(page))
if (swsusp_page_is_forbidden(page) || swsusp_page_is_free(page))
return NULL;
if (PageReserved(page) || PageOffline(page))
return NULL;
if (page_is_guard(page))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment