summaryrefslogtreecommitdiffstats
path: root/kernel/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mm/slab.c')
-rw-r--r--kernel/mm/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/mm/slab.c b/kernel/mm/slab.c
index 7eb38dd1c..3dd2d1ff9 100644
--- a/kernel/mm/slab.c
+++ b/kernel/mm/slab.c
@@ -1602,7 +1602,7 @@ static struct page *kmem_getpages(struct kmem_cache *cachep, gfp_t flags,
}
/* Record if ALLOC_NO_WATERMARKS was set when allocating the slab */
- if (unlikely(page->pfmemalloc))
+ if (page_is_pfmemalloc(page))
pfmemalloc_active = true;
nr_pages = (1 << cachep->gfporder);
@@ -1613,7 +1613,7 @@ static struct page *kmem_getpages(struct kmem_cache *cachep, gfp_t flags,
add_zone_page_state(page_zone(page),
NR_SLAB_UNRECLAIMABLE, nr_pages);
__SetPageSlab(page);
- if (page->pfmemalloc)
+ if (page_is_pfmemalloc(page))
SetPageSlabPfmemalloc(page);
if (kmemcheck_enabled && !(cachep->flags & SLAB_NOTRACK)) {