dt-bindings: display: sitronix,st7701: document port and rotation
[linux-2.6-microblaze.git] / mm / slab.c
index 0d35747..edbe722 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1370,7 +1370,7 @@ static struct slab *kmem_getpages(struct kmem_cache *cachep, gfp_t flags,
        /* Make the flag visible before any changes to folio->mapping */
        smp_wmb();
        /* Record if ALLOC_NO_WATERMARKS was set when allocating the slab */
-       if (sk_memalloc_socks() && page_is_pfmemalloc(folio_page(folio, 0)))
+       if (sk_memalloc_socks() && folio_is_pfmemalloc(folio))
                slab_set_pfmemalloc(slab);
 
        return slab;