mm, slub: dissolve new_slab_objects() into ___slab_alloc()
authorVlastimil Babka <vbabka@suse.cz>
Tue, 11 May 2021 11:01:34 +0000 (13:01 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 3 Sep 2021 23:12:20 +0000 (01:12 +0200)
commit53a0de06e50acb372c75d87fcc72ddfdf4a060ee
tree707bf861c2236e68eaa6311b493590becea6c0ef
parent2a904905ae041504aefaf8fc7144d31b940443e0
mm, slub: dissolve new_slab_objects() into ___slab_alloc()

The later patches will need more fine grained control over individual actions
in ___slab_alloc(), the only caller of new_slab_objects(), so dissolve it
there. This is a preparatory step with no functional change.

The only minor change is moving WARN_ON_ONCE() for using a constructor together
with __GFP_ZERO to new_slab(), which makes it somewhat less frequent, but still
able to catch a development change introducing a systematic misuse.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
mm/slub.c