Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9dd89917 authored by Christoph Lameter's avatar Christoph Lameter Committed by Samuel Pascua
Browse files

mm, sl[aou]b: Extract common fields from struct kmem_cache DerTeufel: This...


mm, sl[aou]b: Extract common fields from struct kmem_cache DerTeufel: This commit most probably breaks slab, but i don't use it anyways

Define a struct that describes common fields used in all slab allocators.
A slab allocator either uses the common definition (like SLOB) or is
required to provide members of kmem_cache with the definition given.

After that it will be possible to share code that
only operates on those fields of kmem_cache.

The patch basically takes the slob definition of kmem cache and
uses the field namees for the other allocators.

It also standardizes the names used for basic object lengths in
allocators:

object_size	Struct size specified at kmem_cache_create. Basically
		the payload expected to be used by the subsystem.

size		The size of memory allocator for each object. This size
		is larger than object_size and includes padding, alignment
		and extra metadata for each object (f.e. for debugging
		and rcu).

Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>

Conflicts:
	mm/slab.c

Change-Id: I7d64843f310869e947c6bfb8af5463cf11f78289
parent 9444f05d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment