]> Git Repo - linux.git/commitdiff
Merge tag 'slab-fix-for-6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <[email protected]>
Fri, 24 Mar 2023 17:12:14 +0000 (10:12 -0700)
committerLinus Torvalds <[email protected]>
Fri, 24 Mar 2023 17:12:14 +0000 (10:12 -0700)
Pull slab fix from Vlastimil Babka:
 "A single build fix for a corner case configuration that is apparently
  possible to achieve on some arches, from Geert"

* tag 'slab-fix-for-6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
  mm/slab: Fix undefined init_cache_node_node() for NUMA and !SMP

1  2 
mm/slab.c

diff --combined mm/slab.c
index dabc2a671fc6f7ffc5da481a3b7a9574500cdb0a,0d35747b9472c62fb349484d2864f656f13a82de..edbe722fb906481fc151f7038652894b85b5b5cc
+++ b/mm/slab.c
@@@ -839,7 -839,7 +839,7 @@@ static int init_cache_node(struct kmem_
        return 0;
  }
  
- #if (defined(CONFIG_NUMA) && defined(CONFIG_MEMORY_HOTPLUG)) || defined(CONFIG_SMP)
+ #if defined(CONFIG_NUMA) || defined(CONFIG_SMP)
  /*
   * Allocates and initializes node for a node on each slab cache, used for
   * either memory or cpu hotplug.  If memory is being hot-added, the kmem_cache_node
@@@ -1370,7 -1370,7 +1370,7 @@@ static struct slab *kmem_getpages(struc
        /* 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;
This page took 0.072406 seconds and 4 git commands to generate.